spark_plug
spark_plug copied to clipboard
Keep getting redirected to /errors/unauthorized
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!
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: https://github.com/jedt/spark_plug/issues/47
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).
here is your answer: http://stackoverflow.com/questions/7223116/cakephp-spark-plug-auth-plugin-causing-redirect-loops/8527419#8527419