oidc-client-js
oidc-client-js copied to clipboard
Single sign out question
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)?
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.
You can also disable SLO notification.