Azure AD SSO session expiration not detected #14182
Labels
Auth
Related to Auth components/category
pending-community-response
Issue is pending a response from the author or community.
question
General question
V5
Before opening, please confirm:
JavaScript Framework
Next.js
Amplify APIs
Authentication, Storage
Amplify Version
v5
Amplify Categories
auth, storage
Backend
None
Environment information
Describe the bug
We are encountering an issue with handling session expiration for Azure AD SSO in our application using AWS Amplify. The following code works as expected for Cognito, where it properly handles session expiration and displays a login expired popup. However, when using Azure AD SSO, the session expiration is not detected, and the login expired popup is not displayed.
Expected behavior
When the Azure AD SSO session expires, it should detect the session expiration, update the local storage, and trigger the "session expired" popup by setting setShowPopup(true).
Reproduction steps
setInterval
withAuth.currentAuthenticatedUser()
).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
The issue appears to be specific to Azure AD SSO, as the session expiration detection and popup functionality works properly with Cognito.
The text was updated successfully, but these errors were encountered: