question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sign out does not clear SSO token

See original GitHub issue

Looking at the code, I don’t see Sign Out being properly implemented. There is a way to remove the user tokens from the local cache, but it does not appear to invoke the system web view to hit the end_session_endpoint endpoint value. That may leave the cookie between the system and the device valid such that a subsequent authenticate call may not prompt for credentials.

Seems like the end_session_endpoint value should be read from the OIDC metadata and then invoked on a sign out?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:18
  • Comments:20 (7 by maintainers)

github_iconTop GitHub Comments

7reactions
frolificcommented, Jun 25, 2020

Any update on this? IMO, this should not be marked as an enhancement - it’s a defect that can potentially lead to PII issues.

4reactions
bgavrilMScommented, Aug 2, 2019

Hi @shripathi-kamath - you have some control over the browser by using the .WithPrompt method. AFAIK Prompt.ForceLogin will always force the user to enter their password.

var result = await pca.AcquireTokenInteractive(_scopes)
                        .WithPrompt(Prompt.ForceLogin)
                        .ExecuteAsync()
Read more comments on GitHub >

github_iconTop Results From Across the Web

Sign out does not clear SSO token #210
In the app, I click "sign out", and it'll clear the local tokens, but then Clicking "sign in" gives the appearance of auto-signing...
Read more >
Logout does not clear session - Microsoft Q&A
When I try to logout, Azure does not clear my session. The next authentication request still returns the same ID token.
Read more >
Clear SSO Login sessions/data
Hi Team, We are using component space SSO for the asp.net web application, The SSO will be initiated from the client with client...
Read more >
SSO - What should happen when the user clicks "Log out"
When a user does a Logout, immediately invalidate ALL sessions for this user and log him/her/it out from any and all systems part...
Read more >
Invalidating an access token when user logs out
Access tokens cannot be invalidated: they are designed to be self contained, not requiring a check with Auth0 to validate, so there is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found