-
Notifications
You must be signed in to change notification settings - Fork 80
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
SingOut/SignIn issue with multiple tabs when a page with SecureRoute is open #148
Comments
I can reproduce this on a single tab. Using this repo - https://github.com/kellengreen/okta
Bonus 🐛
|
Thanks @kellengreen yeah both seems related. |
Tested using |
Thanks for submitting this issue. Internal ref: OKTA-414847 |
Updates: With some investigation, the cause is that the We may need to release the fix in the next major version, since it most probably will involve some breaking changes. For now, please provide onAuthRequired callback option to replace the default
|
I'm not seeing any changes using the |
We are also facing this issue and the above solution didn't work for us. We are using the login page which provided by the OKTA and not CustomLoginComponent. So what should be the resolution here? |
Following work around worked for me with some known issue. It might not exact as is but you need to play around it little bit. onAuthRequired: () => { |
The above solution is not working, can you please elaborate on onAuthRequired and how it works? The issue is happening when we open the application in multiple tabs after login and then we are trying logout from one tab but it is not logged out from other tabs, the application is still logged in after reload. |
You need to logout twice to logout completely. It is still known issue until we get fix. |
@sureshk-vh The cause of this issue is that the cross tabs sync mechanism triggers the default signIn behaivour (redirect to Okta and signIn) before the Okta SSO session is fully killed. Before a proper fix, which will happen in the next major version, we do suggest to use the In the |
Update: With okta-auth-js v5.6, you are able to provide granular control over Note: This is still a workaround, fix will come in the next major version release.
|
@shuowu This work around is working well for logging out. How does one know if the isAuthenticated becomes false from a logout vs a token refresh? Also, has the real fix been implemented and if so what release version? |
We have SingOut/SignIn issue with Okta version "@okta/okta-auth-js": "^5.0.0",
"@okta/okta-react": "^6.0.0", when multiple tabs are open and out of them if there are more the one page is part of #SecureRoute
I am submitting a bug report for above okta version
#Current behavior
Attached video explains behavior (two issues been described here both seems related)
I have used sample app from this rep :https://github.com/okta/okta-react (I noticed the similar behavoir in our application as well)
Please review video before going through steps.
OktaMultiplaTabIssue.zip
Steps
#Expected behavior
Environment
Attached video is testing with sample app in this repo : https://github.com/okta/okta-react
The text was updated successfully, but these errors were encountered: