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

DM-48387: Send users with no login state to after logout #1208

Merged
merged 1 commit into from
Jan 10, 2025
Merged

Conversation

rra
Copy link
Member

@rra rra commented Jan 10, 2025

If the user returns to the login route without login state and no return URL is set (which will be the common case), redirect them to the after logout URL instead of returning a 403 error. Often this means the user previously authenticated via another tab and is now logged on, but we have lost the return URL and do not know where to send them. Returning the error is more confusing and often causes the user to attempt to reload the error page, which then fails.

If the user returns to the login route without login state and no return
URL is set (which will be the common case), redirect them to the after
logout URL instead of returning a 403 error. Often this means the user
previously authenticated via another tab and is now logged on, but we
have lost the return URL and do not know where to send them. Returning
the error is more confusing and often causes the user to attempt to
reload the error page, which then fails.
@rra rra changed the title Send users with no login state to after logout DM-48387: Send users with no login state to after logout Jan 10, 2025
@rra rra merged commit 24c6d14 into main Jan 10, 2025
5 checks passed
@rra rra deleted the tickets/DM-48387 branch January 10, 2025 21:08
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.

1 participant