-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Amplify 6 logout issue with Single sign on #13638
Comments
hello @SajithTS. Sorry to hear you are experiencing issues with the library. I'd like to get some context, could you elaborate on the following questions bellow.
click
|
Hello @israx
NOTE: SSO and the logout functionalities were working fine with the Amplify 5.2.4 version. After the Amplify 6 upgrade, facing this issue |
@israx
The value for the above parameter is
But this Key-value is not present in the local storage of App2. |
Hey @SajithTS. Before calling the The library will validate this |
Hello @israx . I am calling To make sure the configuration is correct, i have printed the configuration value while calling the logout function. The logout function definition used in the App2 and App1 is given below:
The console output for the above code snippet is given here:
The output is same from both App1 & App2. |
hello @SajithTS. Your comment led me to determine the root cause of the issue. The I'll mark this issue as a bug. In the meantime, a heuristic workaround is to manually set the |
Hey @israx . With reference to your previous comment, I have manually set the
Value is successfully stored in localStorage of App2 and now the localStorage of App1 & App2 are identical. Result:
|
I see you have the following domains You should be able to do it via the options of the |
@israx . Thank you for your prompt response and assistance. |
Hey @israx. Thank you for releasing the beta version. I have tested it in my project, and it is working fine. Could you please let me know when you anticipate releasing a stable version of this beta? Note: Currently i'm manually setting the Do we plan on setting this key into |
Hello @SajithTS. We are looking into this issue, will follow up with any updates |
@Samaritan1011001 Thanks for the update. I'll test with the latest version and will give you the updates. |
Hey, @SajithTS 👋. Wanted to check in and see if you had a chance to test the latest version. Let us know if you're still blocked by this. |
Hi, @cwomack @Samaritan1011001 @israx Thank you for addressing the issue. I’ve tested the new version (amplify v6.6.2), and I can confirm that the issue has been resolved. Everything is working as expected now, and I appreciate the quick response and the fix! Thanks again for your hard work on this project. |
Hey, @SajithTS that's great to hear! Appreciate you following up with the confirmation that you're unblocked. We'll close out the issue then. |
Before opening, please confirm:
JavaScript Framework
Angular
Amplify APIs
Authentication, Storage
Amplify Version
v6
Amplify Categories
auth, storage
Backend
Other
Environment information
Describe the bug
I am using Angular version 17.3.12 and Amplify v6.4.2.
Using hosted UI as login method.
We are make use of the Single sign on since we have multiple angular applications.
Also, using Cookie storage as the storage mechanism for the amplify library.
The scenario is,
[Consider I have 2 applications named App1 & App2]
Expected behavior
While using Single sign on with my applications having same domain, expected to completely logout from all the linked applications seamlessly.
Reproduction steps
Code Snippet
Log output
aws-exports.js
Manual configuration
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: