Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unsupported or undefined Opauth strategy error #12

Open
wkolcz opened this issue Apr 19, 2014 · 1 comment
Open

Unsupported or undefined Opauth strategy error #12

wkolcz opened this issue Apr 19, 2014 · 1 comment

Comments

@wkolcz
Copy link

wkolcz commented Apr 19, 2014

I am trying to set up access to FLickr. I used your example routing in my Laravel application and set the return callback path on my application to http://mysite.com/gallery/create_callback but I keep getting this error:Unsupported or undefined Opauth strategy - gallery . I look all over the application and don't see where else I could possibly change it. Thanks!

I update and published the config file:
// OAuth paths
//////////////////////////////////////////////////////////////////////

'path'           => '/',
'callback_url'   => '{path}gallery/create_callback',
'oauth_callback' => '{path}',

// Security salt
//////////////////////////////////////////////////////////////////////

My Routes:
Route::post('/gallery/create', function() {
Flickering::handshake();
return Flickering::getOpauth();
});
Route::any('/gallery/create_callback', function() {
Flickering::handshake();
if(Request::getMethod() == 'POST'){
Flickering::getOpauthCallback();
return 'Authenticated!';
}else{
Flickering::getOpauth();
return 'Being redirected..';
}
});

@delormejonathan
Copy link
Contributor

Hello,

OpAuth is parsing your current URL to create the "OpAuth strategy", if you move your code to the root of the website, it will work. The "gallery" keyword is the name of your subfolder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants