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

Track login next URL as part of OIDC state #443

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cfra
Copy link
Contributor

@cfra cfra commented Nov 11, 2021

We support multiple parallel login processes by using a dictionary
for oidc_state.

With only a single shared oidc_login_next field in the session,
all login processes will redirect the user to the next URL set by
the login process they initiated last.

This behavior seems confusing and not that useful.

By storing the login next URL as part of the state, we can have each
login process redirect to the next URL provided at its initiation.

Also, we get the benefit that the login next URL for that login process
will not be lingering around in the session anymore, as the whole state
for that login process, including the login next URL, will be removed by
the OIDC callback.

We support multiple parallel login processes by using a dictionary
for `oidc_state`.

With only a single shared `oidc_login_next` field in the session,
all login processes will redirect the user to the next URL set by
the login process they initiated last.

This behavior seems confusing and not that useful.

By storing the login next URL as part of the state, we can have each
login process redirect to the next URL provided at its initiation.

Also, we get the benefit that the login next URL for that login process
will not be lingering around in the session anymore, as the whole state
for that login process, including the login next URL, will be removed by
the OIDC callback.
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