oidc-client-js icon indicating copy to clipboard operation
oidc-client-js copied to clipboard

Single sign out question

Open igor-moskvitin opened this issue 8 years ago • 2 comments

I have a simple client that uses implicit flow. It works, but i have a question about session management. If i open 2 tabs in browser, each authenticated as some user and logout from one of them - got this behavior on another tab:

CheckSessionIFrame: changed message from check session op iframe
main.9d15ec08.js:1 CheckSessionIFrame.stop
main.9d15ec08.js:1 UserManager._signinStart: got navigator window handle
main.9d15ec08.js:1 OidcClient.createSigninRequest

And because of signin request - still autheticated. Is it mean that i should subscribe for userSignedOut (`https://github.com/IdentityModel/oidc-client-js/wiki#events)?

igor-moskvitin avatar Aug 20 '18 04:08 igor-moskvitin

yes, handle the logout with the event specified in the docs which you mentioned. Then you can call signoutRedirect() within the event to make sure the signed in tabs are notified.

arnaldo-infinite avatar Sep 11 '18 05:09 arnaldo-infinite

You can also disable SLO notification.

brockallen avatar Sep 14 '18 22:09 brockallen