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

r-simple-auth: log-out supposed to use landing page #5

Open
jjkola opened this issue Apr 17, 2018 · 1 comment
Open

r-simple-auth: log-out supposed to use landing page #5

jjkola opened this issue Apr 17, 2018 · 1 comment
Labels

Comments

@jjkola
Copy link
Contributor

jjkola commented Apr 17, 2018

I noticed from the implementation that you could supply destination page for log out through landing page mechanism. There was issues with it:

  1. the landing page was accessed from session after session was reset
  2. successful login clears the landing page
  3. if going through registration process then the landing page is not reset nor used

Based on second point should the landing page be passed as a parameter to logout?

@Shinmera
Copy link
Member

Yeah this is definitely an oversight in the spec and implementation. Both login and logout pages should respect the referral argument, no matter which flow is used to complete the action.

The referral has to be cleared after a successful flow though in order to avoid retaining referral information for future landings on either login or logout. As in, if you login with redirect to foo, and then logout without a redirect, it is probably not intended to redirect you to foo again, since the logout request could come from another module entirely.

@Shinmera Shinmera added the bug label Apr 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants