Logout issue with Amplify 6 Single sign on #13987
Labels
Angular
Related to Angular 2+
Auth
Related to Auth components/category
pending-community-response
Issue is pending a response from the author or community.
question
General question
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 confirmSignIn, signIn, signOut functions from aws-amplify/auth for login/logout of my application (Angular version 17.3.12 and Amplify v6.4.2). 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. We have multiple web applications which make use of a single login feature. User will be taken to one of the applications based on his configuration. Logout can be done from any applications using a common shared header that contain logout button, which uses our custom library.
Case 1:
If I try to logout from the main application, it will successfully logout, and redirect to landing page
Case 2:
If I try to logout from any of the redirected applications, no action is happening in the page. A request to https://cognito-idp.us-west-2.amazonaws.com is sent, and HTTP 200 is returned as response. The cookies are not getting cleared, and refreshing the page leads to landing page of the main application, which is the redirectUrl that we have given.
Expected behavior
While using Single sign on with my applications having same domain, expected to completely logout from all the linked applications
Reproduction steps
Try to logout from the ChildApp1.
Code Snippet
Log output
aws-exports.js
No response
Manual configuration
No response
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: