uzyn/cakephp-opauth

Error: Unsupported or undefined Opauth strategy - auth

AlessandroMinoccheri opened this issue · 7 comments

I have seen this error again in other issue but I haven't find the solution for me.
I have already installed opauth and now when U try to login with facebook I retrieve this error:
Error: Unsupported or undefined Opauth strategy - auth
File: /Users/my_user/Sites/my_app/app/Plugin/Opauth/Vendor/Opauth/lib/Opauth/Opauth.php
Line: 120

This is my bootstrap:
CakePlugin::load('Opauth', array('routes' => true, 'bootstrap' => true));
//Configure::write('Opauth.path', '/my_app/auth/');
Configure::write('Opauth.Strategy.Facebook', array(
'app_id' => 'XXXX',
'app_secret' => 'XXXX'
));

I have tried to uncomment the line of COnfigure::Write but after tell me that the url isn't valid when I authenticate in facebook

What can I do to solve this?
I don't understand because some weeks ago seems that this code working fine

uzyn commented

You'll firstly have to uncomment Configure::write('Opauth.path', '/my_app/auth/');.

What's the error you get after that/

Now I can insert username and password in facebook ut on submit I retrieve an error that the url inserted isn't in the app configuration

uzyn commented

Screenshot or pastebin of the actual error?

the actual error is: (translate from italian to english)
The URL you entered is not permitted by the application configuration.: One or more of the addresses entered are not allowed by the application settings. Must match the address of the Home Page or the Website or the domain must be a subdomain of one of the domains.

No answer? :(

I have never seen either cakephp or opauth generate such an error message.
Do you have a stack trace perhaps?
Op 2 aug. 2013 17:07 schreef "AlessandroMinoccheri" <
notifications@github.com> het volgende:

No answer? :(


Reply to this email directly or view it on GitHubhttps://github.com//issues/24#issuecomment-22011818
.

Delete or comment that line: Configure::write('Opauth.Strategy', array());