flickering icon indicating copy to clipboard operation
flickering copied to clipboard

Unsupported or undefined Opauth strategy error

Open wkolcz opened this issue 10 years ago • 1 comments

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..'; } });

wkolcz avatar Apr 19 '14 03:04 wkolcz

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.

delormejonathan avatar Jan 16 '15 10:01 delormejonathan