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

Keep getting redirected to /errors/unauthorized #47

Open
ShashankaNataraj opened this issue Oct 27, 2011 · 3 comments
Open

Keep getting redirected to /errors/unauthorized #47

ShashankaNataraj opened this issue Oct 27, 2011 · 3 comments

Comments

@ShashankaNataraj
Copy link

Hi, wonderful plugin. I am stuck with an issue now:

whenever I click on any other link or try to load any other controller via a url in the browser, I get redirected to /errors/unauthorized. What is the fix for this? It is the same issue being discussed here also:

http://stackoverflow.com/questions/7223116/cakephp-spark-plug-auth-plugin-causing-redirect-loops

though Im not the author of that question. Im not facing the redirect loop issue as described there. The only issue I have is that spark plug wont let me get into any other page other than the user management ones that came with spark plug.

Thanks in advance!

@steinkel
Copy link
Collaborator

Check if you have the content of the tables loaded from the sql file inside
the spark_plug config/sql folder. If you don't have the url in the
permission system, you'll be redirected to unauthorized by default.

2011/10/27 FlyinPanda <
[email protected]>

Hi, wonderful plugin. I am stuck with an issue now:

whenever I click on any other link or try to load any other controller via
a url in the browser, I get redirected to /errors/unauthorized. What is the
fix for this? It is the same issue being discussed here also:

http://stackoverflow.com/questions/7223116/cakephp-spark-plug-auth-plugin-causing-redirect-loops

though Im not the author of that question. Im not facing the redirect loop
issue as described there. The only issue I have is that spark plug wont let
me get into any other page other than the user management ones that came
with spark plug.

Thanks in advance!

Reply to this email directly or view it on GitHub:
#47

@ShashankaNataraj
Copy link
Author

The contents of the sql file have been executed and the proper table structures are present in the database.

What do you mean when you say "if you dont have the url in the permission system", is there a procedure to do this specially, or are you talking about the "manage permissions" link when you go to the /users/dashboard url ? (the manage permissions link in my case throws a $facebook variable is undefined cake error).

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

3 participants