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

Need silent check SSO #80

Open
xgp opened this issue Apr 12, 2023 · 2 comments
Open

Need silent check SSO #80

xgp opened this issue Apr 12, 2023 · 2 comments
Assignees

Comments

@xgp
Copy link
Member

xgp commented Apr 12, 2023

When a session is terminated, logout should happen immediately. Add a timer to check the sso state and redirect to logout?

@pnzrr
Copy link
Contributor

pnzrr commented Jul 16, 2023

Is this the case where someone is on the activity view for the profile, clicks "sign out session" and you want the other session to sign out immediately?

image

@pnzrr
Copy link
Contributor

pnzrr commented Jul 17, 2023

Is there a way to tell this beyond the 401 responses from endpoints? I'm looking through libraries and its not clear if there there is a good way to do this. The token remains "valid" so you can't check that. Having to poll say the user endpoint seems like an inappropriate amount of network calls to make just to keep track of this session.

I figured removing the checkLoginIframe: false would allow it to check in the background per the documentation. That doesn't seem to do anything though.

8.7.1. Session status iframe
By default the JavaScript adapter creates a non-visible iframe that is used to detect if a single-sign out has occured. This does not require any network traffic, instead the status is retrieved from a special status cookie. This feature can be disabled by setting checkLoginIframe: false in the options passed to the init method.

@xgp xgp self-assigned this Jul 19, 2023
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