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

Consider automatic single logout when an IdentityServer session is overwritten #1619

Open
AndersAbel opened this issue Oct 29, 2024 · 1 comment

Comments

@AndersAbel
Copy link
Member

Consider a user being logged in to IdentityServer and one or more client applications. What if they then open another client application that has specific requirements on login that the current session doesn't fulfill? It could be an acr value for a tenant or a specific idp. IdentityServer would then show the login UI and on successful sign on overwrite the existing session. At this point, the client sessions participating in the existing single sign on session are orphaned. Those sessions can no longer successfully invoke Single Logout (because IdentityServer will have no record of their session), nor will they ever be notified in a Single Logout scenario.

To prevent orphaned sessions, consider doing a single logout whenever the existing IdentityServer session is about to be overwritten.

@brockallen
Copy link
Member

We've always know that this is possible, but we never did anything auto-magically and left it to the dev to decide how to handle that on the login page if there is an existing session. I'm not saying that we couldn't do something, but historically we decided against.

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

No branches or pull requests

2 participants