switching between apps on same domain does not get reauthenticate. There by ID token is not fetched #7212
Labels
bug-unconfirmed
A reported bug that needs to be investigated and confirmed
msal-browser
Related to msal-browser package
msal-react
Related to @azure/msal-react
public-client
Issues regarding PublicClientApplications
question
Customer is asking for a clarification, use case or information.
Core Library
MSAL.js (@azure/msal-browser)
Core Library Version
3.15.0
Wrapper Library
MSAL React (@azure/msal-react)
Wrapper Library Version
none
Public or Confidential Client?
Public
Description
We are using msal browser with session storage. We have multiple applications on same domain so different applications load based on route. If one of our applications is authenticated and we try to navigate to other application by simply updating route in same window, idTokenClaims becomes undefined however accounts are defined. Hence screen is stuck in the loop and never gets the token for new client.
If we can identify switching of apps and remove item from session storage with key ""msal.account.keys" everything works as expected. Looks like we should add validation on token instead of accounts for fetching new token as accounts does not rely on clientId.
Error Message
No response
MSAL Logs
Working logs:
Failur logs:
Network Trace (Preferrably Fiddler)
MSAL Configuration
Relevant Code Snippets
Reproduction Steps
Expected Behavior
Application2 should also load as expected
Identity Provider
Entra ID (formerly Azure AD) / MSA
Browsers Affected (Select all that apply)
Chrome, Edge
Regression
No response
Source
Internal (Microsoft)
The text was updated successfully, but these errors were encountered: