-
Notifications
You must be signed in to change notification settings - Fork 363
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
Suport for multi tab sessions #1272
Comments
What you are requesting sounds possible already by not setting the
This is already the case. Tokens are either put into memory (then each tab has its own memory cache), or into local storage (then each domain has its own cache). |
First of all, thank you for the detailed (and fast) response.
|
I do not think this is exactly true. Even though I can understand using cookieDomain can help here, this should still be possible without the cookieDomain, with a slightly decreased UX perhaps. I'd recommend giving it a try and evaluating if it fits your needs. Having said that, I am not sure I understand what you are saying. Do you want Also note, when using the |
Let me get back to my original question Note that the authenticated user does have access to both org_1, and org_2 |
No, see https://github.com/auth0/auth0-spa-js/blob/main/EXAMPLES.md#switch-to-a-different-organization. If you want to switch organizations, you have to go trough the |
Checklist
Describe the problem you'd like to have solved
We are using auth 0 for a while now, and we have the following architecture
We are using auth 0 cookies with the domain: 'domain.com' so that whenever the organization_hint cookie is changed (when we logged into another organization), this affects ALL the open applications on all the tabs
We would like to change this behavior, such that each open application would have "its own" organization_hint so that each application opened in each tab would be authenticated to a different organization
We are adding the JWT value to each request sent from each application as an HTTP header.
Does this scenario supported by auth0?
If we would pass the organization_hint to 'getAccessTokenSilently' in order to get the JWT value, will this work? even if there is a different value on the organization_hint cookie?
Describe the ideal solution
Our ideal solution would be that each opened application would have its own JWT value, meaning that we would be able to have multiple sessions simultaneously
Alternatives and current workarounds
none
Additional context
No response
The text was updated successfully, but these errors were encountered: