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

Login redirect loop #2

Closed
wants to merge 59 commits into from
Closed

Login redirect loop #2

wants to merge 59 commits into from

Conversation

AD7six
Copy link

@AD7six AD7six commented Nov 16, 2010

This fix will allow the second redirect loop to be addressed. Incase github flips out - this is intended to be against feature/refactor.

Edit: github evidently has problems if you change the pull request target please disregard the listed commits below and see only https://github.com/AD7six/users/commit/750021c2b0ffbf57772cd851673dbc15336348de

renan and others added 30 commits September 23, 2010 19:55
… it can lead to errors whe using utf8. Optimization is left for the user if he needs any
…er') instead the models alias to make sure the cookie will work accross subdomains out of the box that share the same user data but use another model alias
…nt to fix redirect to invalid location after registration of user.
predominant and others added 19 commits November 11, 2010 02:04
The user model is used by the auth component to know where in the
session to look for auth data. using $controller->modelClass as a
default means that the auth component looks in a different place for
each controller and therefore has the potential to invoke a redirect
loop where (example using an empty install):

you login - users controller, sessionKey in the auth component is set to
"Auth.User" derived from the userModel
you're redirected to the home.
you re-land at home - pages controller sessionKey in the auth component
is set to "Auth.Page" dervied from the userModel
you're redirected to login.

irgo: / -> /users/users/login -> / -> .. ad infinitum

After correcting this error, it is apparent that if you're logged in but
do not have access the auth component will redirect you to a "safe" url
which is assumed to be the home. If you have NOT granted access to /
this will again invoke a redirect loop this time / -> / as the auth
component tries to redirect you away from the page you don't have acces
for.
@AD7six
Copy link
Author

AD7six commented Nov 17, 2010

changes integrated into correct branch.

This pull request was closed.
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

Successfully merging this pull request may close these issues.

5 participants