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
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
weijjiacommented, May 19, 2017

@onovotny For the preview, we only support signout by removing tokens from the cache. Sigout from system webview will be the next step, we’ll add the support later.

0reactions
emmanocommented, May 10, 2020

In the meantime I am using the following code to remove all user data and prevent automatic login after sign out. I am using "authorization_user_agent": "WEBVIEW".

(requireContext().getSystemService(Context.ACTIVITY_SERVICE) as ActivityManager).clearApplicationUserData()

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sign out does not clear SSO token #210 - GitHub
Looking at the code, I don't see Sign Out being properly implemented. There is a way to remove the user tokens from the...
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 - ComponentSpace
SignOut (); HttpContext.Current.Response.Cookies.Clear(); we are trying clear session and cookies. ... step 4: client login page won't ask for any credentials and ...
Read more >
Invalidating an access token when user logs out
I misunderstood the statement. So, the user won't be logged out, but the user will not be authenticated with the backend either, right?...
Read more >
Authentication - Sign out - Android - AWS Amplify Docs
You can only have one user signed in at a given time. Calling signOut without any options will delete the local cache and...
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