Skip to content
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

MsalAuthenticationTemplate.tsx doesn't log in after logging out #7392

Open
2 tasks
SimonSimCity opened this issue Oct 22, 2024 · 0 comments
Open
2 tasks

MsalAuthenticationTemplate.tsx doesn't log in after logging out #7392

SimonSimCity opened this issue Oct 22, 2024 · 0 comments
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 Needs: Attention 👋 Awaiting response from the MSAL.js team public-client Issues regarding PublicClientApplications question Customer is asking for a clarification, use case or information.

Comments

@SimonSimCity
Copy link

SimonSimCity commented Oct 22, 2024

Core Library

MSAL.js (@azure/msal-browser)

Core Library Version

3.26.1

Wrapper Library

MSAL React (@azure/msal-react)

Wrapper Library Version

2.1.1

Public or Confidential Client?

Public

Description

When logging out using logout({ onRedirectNavigate: () => false }), the component MsalAuthenticationTemplate renders nothing and doesn't redirect or open a popup.

As I thought this was a desired state, I suggested to add a component to be shown in this case (#7388) but since I was told that this is a bug and shouldn't happen, I'm opening this issue to assure this state is handled properly.

Error Message

Nothing is visible on the screen - the component MsalAuthenticationTemplate renders as null.

MSAL Logs

Click to show the logs:
[Tue, 22 Oct 2024 07:32:25 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager - createKeyMaps called.
[Tue, 22 Oct 2024 07:32:25 GMT] : [] : @azure/[email protected] : Trace - initialize called
[Tue, 22 Oct 2024 07:32:25 GMT] : [] : @azure/[email protected] : Trace - Executing function clearTokensAndKeysWithClaims
[Tue, 22 Oct 2024 07:32:25 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getTokenKeys called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getAccountKeys called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getActiveAccount: No active account found
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - Returning result from clearTokensAndKeysWithClaims
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getActiveAccount: No active account found
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getAccountKeys called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getActiveAccount: No active account found
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Info - useAccount - Updating account
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - initialize called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Info - initialize has already been called, exiting early.
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getAccountKeys called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getCachedNativeRequest called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getTemporaryCache: No cache item found in local storage
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getCachedNativeRequest: No cached native request found
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getTemporaryCache: No cache item found in local storage
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Info - MsalProvider - msal:handleRedirectStart results in setting inProgress from startup to handleRedirect
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getAccountKeys called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - handleRedirectPromise - acquiring token from web flow
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - Executing function handleRedirectPromise
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getTemporaryCache: No cache item found in local storage
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f1f-7769-870c-d16252ffaa2d] : [email protected] : Info - handleRedirectPromise called but there is no interaction in progress, returning null.
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - Returning result from handleRedirectPromise
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Info - MsalProvider - msal:handleRedirectEnd results in setting inProgress from handleRedirect to none
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getAccountKeys called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getActiveAccount: No active account found
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Info - useAccount - Updating account
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Info - useMsalAuthentication - No user is authenticated, attempting to login
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getTemporaryCache: No cache item found in local storage
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getAccountKeys called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - canUseNative called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - isNativeAvailable called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - isNativeAvailable: allowNativeBroker is not enabled, returning false
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - canUseNative: isNativeAvailable returned false, returning false
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : [email protected] : Trace - Executing function standardInteractionClientInitializeAuthorizationRequest
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : [email protected] : Trace - Executing function initializeBaseRequest
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getAccountKeys called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Info - MsalProvider - msal:loginStart results in setting inProgress from none to login
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getAccountKeys called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getActiveAccount: No active account found
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Info - useAccount - Updating account
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : [email protected] : Trace - Returning result from initializeBaseRequest
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getActiveAccount: No active account found
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getTemporaryCache: No cache item found in local storage
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getTemporaryCache: No cache item found in local storage
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : [email protected] : Trace - Returning result from standardInteractionClientInitializeAuthorizationRequest
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : [email protected] : Trace - Executing function standardInteractionClientInitializeAuthorizationCodeRequest
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : [email protected] : Trace - Executing function generatePkceCodes
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : [email protected] : Trace - Executing function generateCodeVerifier
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : [email protected] : Trace - Executing function getRandomValues
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : [email protected] : Trace - Returning result from getRandomValues
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : [email protected] : Trace - Returning result from generateCodeVerifier
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : [email protected] : Trace - Executing function generateCodeChallengeFromVerifier
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : [email protected] : Trace - Executing function sha256Digest
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getActiveAccount: No active account found
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Info - useAccount - Updating account
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : [email protected] : Trace - Returning result from sha256Digest
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : [email protected] : Trace - Returning result from generateCodeChallengeFromVerifier
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : [email protected] : Trace - Returning result from generatePkceCodes
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : [email protected] : Trace - Returning result from standardInteractionClientInitializeAuthorizationCodeRequest
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : [email protected] : Trace - Executing function standardInteractionClientCreateAuthCodeClient
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : [email protected] : Trace - Executing function standardInteractionClientGetClientConfiguration
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : [email protected] : Trace - Executing function standardInteractionClientGetDiscoveredAuthority
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : [email protected] : Trace - Executing function authorityFactoryCreateDiscoveredInstance
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : [email protected] : Trace - Executing function authorityResolveEndpointsAsync
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : [email protected] : Trace - Executing function authorityUpdateCloudDiscoveryMetadata
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : [email protected] : Trace - Returning result from authorityUpdateCloudDiscoveryMetadata
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : [email protected] : Trace - Executing function authorityUpdateEndpointMetadata
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : [email protected] : Trace - Returning result from authorityUpdateEndpointMetadata
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.setAuthorityMetadata called
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : [email protected] : Trace - Returning result from authorityResolveEndpointsAsync
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : [email protected] : Trace - Returning result from authorityFactoryCreateDiscoveredInstance
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : [email protected] : Trace - Returning result from standardInteractionClientGetDiscoveredAuthority
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : [email protected] : Trace - Returning result from standardInteractionClientGetClientConfiguration
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : [email protected] : Trace - Returning result from standardInteractionClientCreateAuthCodeClient
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : [email protected] : Trace - isNativeAvailable called
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : [email protected] : Trace - isNativeAvailable: allowNativeBroker is not enabled, returning false
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : @azure/[email protected] : Trace - Executing function authClientCreateQueryString
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : @azure/[email protected] : Trace - Returning result from authClientCreateQueryString
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getAccountKeys called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getTemporaryCache: Temporary cache item returned
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : [email protected] : Trace - Executing function deserializeResponse
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : [email protected] : Trace - Returning result from deserializeResponse
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : [email protected] : Trace - Executing function handleCodeResponseFromServer
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : [email protected] : Trace - InteractionHandler.handleCodeResponseFromServer called
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : [email protected] : Trace - Executing function authClientAcquireToken
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : @azure/[email protected] : Trace - Executing function authClientExecuteTokenRequest
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : @azure/[email protected] : Trace - Executing function authClientCreateTokenRequestBody
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getServerTelemetry: called, no cache hit
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getServerTelemetry: called, no cache hit
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : @azure/[email protected] : Trace - Returning result from authClientCreateTokenRequestBody
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : @azure/[email protected] : Trace - Executing function authorizationCodeClientExecutePostToTokenEndpoint
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getThrottlingCache: called, no cache hit
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getServerTelemetry: called, no cache hit
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : @azure/[email protected] : Trace - Returning result from authorizationCodeClientExecutePostToTokenEndpoint
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : @azure/[email protected] : Trace - Returning result from authClientExecuteTokenRequest
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : @azure/[email protected] : Trace - Executing function handleServerTokenResponse
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getAccountKeys called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.setAccount called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.addAccountKeyToMap called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getAccountKeys called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.setIdTokenCredential called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager addTokenKey called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getTokenKeys called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Info - BrowserCacheManager: addTokenKey - idToken added to map
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getTokenKeys called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.setAccessTokenCredential called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager addTokenKey called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getTokenKeys called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Info - BrowserCacheManager: addTokenKey - accessToken added to map
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.setRefreshTokenCredential called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager addTokenKey called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getTokenKeys called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Info - BrowserCacheManager: addTokenKey - refreshToken added to map
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : @azure/[email protected] : Trace - Returning result from handleServerTokenResponse
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : [email protected] : Trace - Returning result from authClientAcquireToken
[Tue, 22 Oct 2024 07:32:26 GMT] : [0192b324-2f21-7162-a682-54f230514a68] : [email protected] : Trace - Returning result from handleCodeResponseFromServer
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getAccountKeys called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getAccount called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getTokenKeys called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - CacheManager - getIdToken called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getIdTokenCredential: cache hit
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - getAliasesFromMetadata called with source: config
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - getAliasesFromMetadata called with source: hardcoded_values
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - getAliasesFromMetadata: found cloud discovery metadata in hardcoded_values, returning aliases
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Info - CacheManager:getIdToken - Returning ID token
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Info - MsalProvider - msal:loginSuccess results in setting inProgress from login to none
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getAccountKeys called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getAccount called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getTokenKeys called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - CacheManager - getIdToken called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getIdTokenCredential: cache hit
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - getAliasesFromMetadata called with source: config
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - getAliasesFromMetadata called with source: hardcoded_values
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - getAliasesFromMetadata: found cloud discovery metadata in hardcoded_values, returning aliases
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Info - CacheManager:getIdToken - Returning ID token
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getActiveAccount: Active account filters schema found
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getAccountKeys called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getAccount called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getTokenKeys called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - CacheManager - getIdToken called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getIdTokenCredential: cache hit
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - getAliasesFromMetadata called with source: config
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - getAliasesFromMetadata called with source: hardcoded_values
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - getAliasesFromMetadata: found cloud discovery metadata in hardcoded_values, returning aliases
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Info - CacheManager:getIdToken - Returning ID token
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getActiveAccount: Active account filters schema found
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getAccountKeys called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getAccount called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getTokenKeys called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - CacheManager - getIdToken called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getIdTokenCredential: cache hit
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - getAliasesFromMetadata called with source: config
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - getAliasesFromMetadata called with source: hardcoded_values
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - getAliasesFromMetadata: found cloud discovery metadata in hardcoded_values, returning aliases
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Info - CacheManager:getIdToken - Returning ID token
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getActiveAccount: Active account filters schema found
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getAccountKeys called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getAccount called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getTokenKeys called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - CacheManager - getIdToken called
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getIdTokenCredential: cache hit
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - getAliasesFromMetadata called with source: config
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - getAliasesFromMetadata called with source: hardcoded_values
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Trace - getAliasesFromMetadata: found cloud discovery metadata in hardcoded_values, returning aliases
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Info - CacheManager:getIdToken - Returning ID token
[Tue, 22 Oct 2024 07:32:26 GMT] : [] : @azure/[email protected] : Info - useAccount - Updating account
-> User clicks "Logout"
[Tue, 22 Oct 2024 07:34:42 GMT] : [0192b326-42a4-719c-ac1c-7689089dba50] : @azure/[email protected] : Warning - logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.
[Tue, 22 Oct 2024 07:34:42 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getTemporaryCache: No cache item found in local storage
[Tue, 22 Oct 2024 07:34:42 GMT] : [] : @azure/[email protected] : Info - MsalProvider - msal:logoutStart results in setting inProgress from none to logout
[Tue, 22 Oct 2024 07:34:42 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getAccountKeys called
[Tue, 22 Oct 2024 07:34:42 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getAccount called
[Tue, 22 Oct 2024 07:34:42 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getTokenKeys called
[Tue, 22 Oct 2024 07:34:42 GMT] : [] : @azure/[email protected] : Trace - CacheManager - getIdToken called
[Tue, 22 Oct 2024 07:34:42 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getIdTokenCredential: cache hit
[Tue, 22 Oct 2024 07:34:42 GMT] : [] : @azure/[email protected] : Trace - getAliasesFromMetadata called with source: config
[Tue, 22 Oct 2024 07:34:42 GMT] : [] : @azure/[email protected] : Trace - getAliasesFromMetadata called with source: hardcoded_values
[Tue, 22 Oct 2024 07:34:42 GMT] : [] : @azure/[email protected] : Trace - getAliasesFromMetadata: found cloud discovery metadata in hardcoded_values, returning aliases
[Tue, 22 Oct 2024 07:34:42 GMT] : [] : @azure/[email protected] : Info - CacheManager:getIdToken - Returning ID token
[Tue, 22 Oct 2024 07:34:42 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getAccountKeys called
[Tue, 22 Oct 2024 07:34:42 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getAccount called
[Tue, 22 Oct 2024 07:34:42 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getTokenKeys called
[Tue, 22 Oct 2024 07:34:42 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager removeTokenKey called
[Tue, 22 Oct 2024 07:34:42 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getTokenKeys called
[Tue, 22 Oct 2024 07:34:42 GMT] : [] : @azure/[email protected] : Info - BrowserCacheManager: removeTokenKey - idToken removed from map
[Tue, 22 Oct 2024 07:34:42 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getAccessTokenCredential: cache hit
[Tue, 22 Oct 2024 07:34:42 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager removeTokenKey called
[Tue, 22 Oct 2024 07:34:42 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getTokenKeys called
[Tue, 22 Oct 2024 07:34:42 GMT] : [] : @azure/[email protected] : Info - BrowserCacheManager: removeTokenKey - accessToken removed from map
[Tue, 22 Oct 2024 07:34:42 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager removeTokenKey called
[Tue, 22 Oct 2024 07:34:42 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getTokenKeys called
[Tue, 22 Oct 2024 07:34:42 GMT] : [] : @azure/[email protected] : Info - BrowserCacheManager: removeTokenKey - refreshToken removed from map
[Tue, 22 Oct 2024 07:34:42 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.removeAccountKeyFromMap called
[Tue, 22 Oct 2024 07:34:42 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getAccountKeys called
[Tue, 22 Oct 2024 07:34:42 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.removeAccountKeyFromMap account key removed
[Tue, 22 Oct 2024 07:34:42 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema
[Tue, 22 Oct 2024 07:34:42 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getActiveAccount: No active account found
[Tue, 22 Oct 2024 07:34:42 GMT] : [] : @azure/[email protected] : Info - useAccount - Updating account
[Tue, 22 Oct 2024 07:34:42 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema
[Tue, 22 Oct 2024 07:34:42 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getActiveAccount: No active account found
[Tue, 22 Oct 2024 07:34:42 GMT] : [] : @azure/[email protected] : Info - useAccount - Updating account
[Tue, 22 Oct 2024 07:34:42 GMT] : [0192b326-42a4-719c-ac1c-7689089dba50] : [email protected] : Trace - Executing function standardInteractionClientCreateAuthCodeClient
[Tue, 22 Oct 2024 07:34:42 GMT] : [0192b326-42a4-719c-ac1c-7689089dba50] : [email protected] : Trace - Executing function standardInteractionClientGetClientConfiguration
[Tue, 22 Oct 2024 07:34:42 GMT] : [0192b326-42a4-719c-ac1c-7689089dba50] : [email protected] : Trace - Executing function standardInteractionClientGetDiscoveredAuthority
[Tue, 22 Oct 2024 07:34:42 GMT] : [0192b326-42a4-719c-ac1c-7689089dba50] : [email protected] : Trace - Executing function authorityFactoryCreateDiscoveredInstance
[Tue, 22 Oct 2024 07:34:42 GMT] : [0192b326-42a4-719c-ac1c-7689089dba50] : [email protected] : Trace - Executing function authorityResolveEndpointsAsync
[Tue, 22 Oct 2024 07:34:42 GMT] : [0192b326-42a4-719c-ac1c-7689089dba50] : [email protected] : Trace - Executing function authorityUpdateCloudDiscoveryMetadata
[Tue, 22 Oct 2024 07:34:42 GMT] : [0192b326-42a4-719c-ac1c-7689089dba50] : [email protected] : Trace - Returning result from authorityUpdateCloudDiscoveryMetadata
[Tue, 22 Oct 2024 07:34:42 GMT] : [0192b326-42a4-719c-ac1c-7689089dba50] : [email protected] : Trace - Executing function authorityUpdateEndpointMetadata
[Tue, 22 Oct 2024 07:34:42 GMT] : [0192b326-42a4-719c-ac1c-7689089dba50] : [email protected] : Trace - Returning result from authorityUpdateEndpointMetadata
[Tue, 22 Oct 2024 07:34:42 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.setAuthorityMetadata called
[Tue, 22 Oct 2024 07:34:42 GMT] : [0192b326-42a4-719c-ac1c-7689089dba50] : [email protected] : Trace - Returning result from authorityResolveEndpointsAsync
[Tue, 22 Oct 2024 07:34:42 GMT] : [0192b326-42a4-719c-ac1c-7689089dba50] : [email protected] : Trace - Returning result from authorityFactoryCreateDiscoveredInstance
[Tue, 22 Oct 2024 07:34:42 GMT] : [0192b326-42a4-719c-ac1c-7689089dba50] : [email protected] : Trace - Returning result from standardInteractionClientGetDiscoveredAuthority
[Tue, 22 Oct 2024 07:34:42 GMT] : [0192b326-42a4-719c-ac1c-7689089dba50] : [email protected] : Trace - Returning result from standardInteractionClientGetClientConfiguration
[Tue, 22 Oct 2024 07:34:42 GMT] : [0192b326-42a4-719c-ac1c-7689089dba50] : [email protected] : Trace - Returning result from standardInteractionClientCreateAuthCodeClient
[Tue, 22 Oct 2024 07:34:42 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getAccountKeys called
[Tue, 22 Oct 2024 07:34:42 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getTemporaryCache: No cache item found in local storage
[Tue, 22 Oct 2024 07:34:42 GMT] : [] : @azure/[email protected] : Info - MsalProvider - msal:logoutEnd results in setting inProgress from logout to none
[Tue, 22 Oct 2024 07:34:42 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getAccountKeys called
[Tue, 22 Oct 2024 07:34:42 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema
[Tue, 22 Oct 2024 07:34:42 GMT] : [] : @azure/[email protected] : Trace - BrowserCacheManager.getActiveAccount: No active account found
[Tue, 22 Oct 2024 07:34:42 GMT] : [] : @azure/[email protected] : Info - useAccount - Updating account

Network Trace (Preferrably Fiddler)

  • Sent
  • Pending

MSAL Configuration

{
  auth: {
    clientId: "<<CLIENT-ID>>",
    redirectUri: "/",
  },
  cache: {
    // Share login state across tabs and windows
    cacheLocation: "localStorage",
  },
}

Relevant Code Snippets

Try it in this sandbox: https://codesandbox.io/p/sandbox/react-typescript-forked-659xwk?workspaceId=a3ee7606-63a0-4cb6-a78b-0a5d8099b662

The important part is the component `MsalAuthenticationTemplate` and a button calling `logout({ onRedirectNavigate: () => false })` inside it.

Reproduction Steps

  1. Open src/auth.msal.ts and insert your client-id.
  2. Log in using the popup.
  3. Click on the logout-button.

Expected Behavior

According to #7388, the correct behavior is to run the login action, bringing the component into the loading state, instead of showing an empty screen.

Identity Provider

Entra ID (formerly Azure AD) / MSA

Browsers Affected (Select all that apply)

Chrome, Firefox, Edge, Safari, Other

Regression

No response

@SimonSimCity SimonSimCity added bug-unconfirmed A reported bug that needs to be investigated and confirmed question Customer is asking for a clarification, use case or information. labels Oct 22, 2024
@github-actions github-actions bot added msal-browser Related to msal-browser package msal-react Related to @azure/msal-react public-client Issues regarding PublicClientApplications labels Oct 22, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: Attention 👋 Awaiting response from the MSAL.js team label Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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 Needs: Attention 👋 Awaiting response from the MSAL.js team public-client Issues regarding PublicClientApplications question Customer is asking for a clarification, use case or information.
Projects
None yet
Development

No branches or pull requests

1 participant