Description
Core Library
MSAL.js (@azure/msal-browser)
Core Library Version
3.0.23
Wrapper Library
MSAL Angular (@azure/msal-angular)
Wrapper Library Version
3.20.0
Public or Confidential Client?
Public
Description
Hi,
We are using Azure B2C for our angular web app authentication and we have noticed multiple token calls being made after acquiring token with in fraction of seconds, even before the obtain token has expired. Eventually failing with ERR_HTTP2_PROTOCOL_ERROR message intermittently , causing page to refresh and losing all the user activity on the page when this happens.
we suspect something is clearing the local storage cache for the token , which is initiating the acquire token call again. only time we are clearing out the local storage cache is on sign out in our code.
PS: I'm unable to upload a screen shot of the network logs. but mentioned the verbose logs and stack trace
Error Message
Request: https:////b2c_1a_userworkflow/oauth2/v2.0/token
Reponse: ERR_HTTP2_PROTOCOL_ERROR
MSAL Logs
client:489 [vite] connecting...
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:39 GMT] : [] : @azure/[email protected] : Verbose - BrowserCrypto: modern crypto interface available
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:39 GMT] : [] : @azure/[email protected] : Verbose - BrowserCacheManager:createKeyMaps - account and token key maps already exist, skipping migration.
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:39 GMT] : [] : @azure/[email protected] : Verbose - Event callback registered with id: 01974275-1994-7fff-acef-e6d26a0f1cd5
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - getAllAccounts called
core.mjs:30083 Angular is running in development mode.
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - MsalRedirectComponent activated
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - Emitting event to callback 01974275-1994-7fff-acef-e6d26a0f1cd5: msal:initializeStart
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - Claims-based caching is disabled. Clearing the previous cache with claims
core.mjs:30083 Angular is running in development mode.
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - Emitting event to callback 01974275-1994-7fff-acef-e6d26a0f1cd5: msal:initializeEnd
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - handleRedirectPromise called
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - getAllAccounts called
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - Emitting event to callback 01974275-1994-7fff-acef-e6d26a0f1cd5: msal:handleRedirectStart
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - BroadcastService - msal:handleRedirectStart results in setting inProgress from startup to handleRedirect
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [01974275-19c8-71c4-9aa6-859c13241965] : [email protected] : Verbose - initializeServerTelemetryManager called
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - handleRedirectPromise has been called for the first time, storing the promise
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - Emitting event to callback 01974275-1994-7fff-acef-e6d26a0f1cd5: msal:handleRedirectEnd
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - BroadcastService - msal:handleRedirectEnd results in setting inProgress from handleRedirect to none
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - MSAL Interceptor activated
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - Interceptor - getting scopes for endpoint
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - Interceptor - active account selected
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [01974275-19d3-7279-b5c7-f66ce6155bae] : @azure/[email protected] : Verbose - acquireTokenSilent called
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [01974275-19d3-7279-b5c7-f66ce6155bae] : @azure/[email protected] : Verbose - acquireTokenSilent called for the first time, storing active request
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - Emitting event to callback 01974275-1994-7fff-acef-e6d26a0f1cd5: msal:acquireTokenStart
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - Authentication Scheme wasn't explicitly set in request, defaulting to "Bearer" request
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - MSAL Interceptor activated
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - Interceptor - getting scopes for endpoint
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - Interceptor - active account selected
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [01974275-19df-72ab-84f0-487218ddfa2f] : @azure/[email protected] : Verbose - acquireTokenSilent called
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [01974275-19df-72ab-84f0-487218ddfa2f] : @azure/[email protected] : Verbose - acquireTokenSilent has been called previously, returning the result from the first call
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - MSAL Interceptor activated
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - Interceptor - getting scopes for endpoint
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - Interceptor - active account selected
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [01974275-19e6-7194-b389-a44f04d4db9d] : @azure/[email protected] : Verbose - acquireTokenSilent called
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [01974275-19e6-7194-b389-a44f04d4db9d] : @azure/[email protected] : Verbose - acquireTokenSilent has been called previously, returning the result from the first call
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - acquireTokenSilent - attempting to acquire token from web flow
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [01974275-19d3-7279-b5c7-f66ce6155bae] : [email protected] : Verbose - initializeServerTelemetryManager called
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [01974275-19d3-7279-b5c7-f66ce6155bae] : [email protected] : Verbose - Attempting to get cloud discovery metadata from authority configuration
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [01974275-19d3-7279-b5c7-f66ce6155bae] : [email protected] : Verbose - The host is included in knownAuthorities. Creating new cloud discovery metadata from the host.
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [01974275-19d3-7279-b5c7-f66ce6155bae] : [email protected] : Verbose - Found cloud discovery metadata in authority configuration
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [01974275-19d3-7279-b5c7-f66ce6155bae] : [email protected] : Verbose - Attempting to get endpoint metadata from authority configuration
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [01974275-19d3-7279-b5c7-f66ce6155bae] : [email protected] : Verbose - Did not find endpoint metadata in the config... Attempting to get endpoint metadata from the hardcoded values.
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [01974275-19d3-7279-b5c7-f66ce6155bae] : [email protected] : Verbose - Did not find endpoint metadata in hardcoded values... Attempting to get endpoint metadata from the network metadata cache.
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [01974275-19d3-7279-b5c7-f66ce6155bae] : [email protected] : Verbose - Authority.getEndpointMetadataFromNetwork: attempting to retrieve OAuth endpoints from https:////b2c_1a_userworkflow/v2.0/.well-known/openid-configuration
zone.js:1201 [Violation] 'load' handler took 5393ms
client:608 [vite] connected.
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - Guard - canActivate
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - MSAL Guard activated
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - handleRedirectPromise called
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - handleRedirectPromise has been called previously, returning the result from the first call
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - getAllAccounts called
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - Guard - at least 1 account exists, can activate or load
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - Guard - canActivate
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - MSAL Guard activated
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - handleRedirectPromise called
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - handleRedirectPromise has been called previously, returning the result from the first call
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - getAllAccounts called
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - Guard - at least 1 account exists, can activate or load
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - MSAL Interceptor activated
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - Interceptor - getting scopes for endpoint
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - Interceptor - active account selected
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [01974275-1a52-7059-a84d-aa120aed2705] : @azure/[email protected] : Verbose - acquireTokenSilent called
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [01974275-1a52-7059-a84d-aa120aed2705] : @azure/[email protected] : Verbose - acquireTokenSilent has been called previously, returning the result from the first call
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - MSAL Interceptor activated
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - Interceptor - getting scopes for endpoint
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - Interceptor - active account selected
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [01974275-1a6b-79bb-8392-76a9c7ba0446] : @azure/[email protected] : Verbose - acquireTokenSilent called
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [01974275-1a6b-79bb-8392-76a9c7ba0446] : @azure/[email protected] : Verbose - acquireTokenSilent has been called previously, returning the result from the first call
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - MSAL Interceptor activated
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - Interceptor - getting scopes for endpoint
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - Interceptor - active account selected
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [01974275-1a72-72ab-9417-6d57aeaf086d] : @azure/[email protected] : Verbose - acquireTokenSilent called
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [01974275-1a72-72ab-9417-6d57aeaf086d] : @azure/[email protected] : Verbose - acquireTokenSilent has been called previously, returning the result from the first call
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - MSAL Interceptor activated
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - Interceptor - getting scopes for endpoint
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - Interceptor - active account selected
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [01974275-1a79-7af2-8417-d98e44545063] : @azure/[email protected] : Verbose - acquireTokenSilent called
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [01974275-1a79-7af2-8417-d98e44545063] : @azure/[email protected] : Verbose - acquireTokenSilent has been called previously, returning the result from the first call
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - MSAL Interceptor activated
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - Interceptor - getting scopes for endpoint
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - Interceptor - active account selected
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [01974275-1a81-7077-96d0-583192f7f12d] : @azure/[email protected] : Verbose - acquireTokenSilent called
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [01974275-1a81-7077-96d0-583192f7f12d] : @azure/[email protected] : Verbose - acquireTokenSilent has been called previously, returning the result from the first call
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - MSAL Interceptor activated
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - Interceptor - getting scopes for endpoint
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - Interceptor - active account selected
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [01974275-1a86-71ef-a03c-9ec7ccc6d49a] : @azure/[email protected] : Verbose - acquireTokenSilent called
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [01974275-1a86-71ef-a03c-9ec7ccc6d49a] : @azure/[email protected] : Verbose - acquireTokenSilent has been called previously, returning the result from the first call
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - MSAL Interceptor activated
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - Interceptor - getting scopes for endpoint
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - Interceptor - active account selected
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [01974275-1a8c-75ab-b25c-0597cdbefb4b] : @azure/[email protected] : Verbose - acquireTokenSilent called
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [01974275-1a8c-75ab-b25c-0597cdbefb4b] : @azure/[email protected] : Verbose - acquireTokenSilent has been called previously, returning the result from the first call
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - MSAL Interceptor activated
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - Interceptor - getting scopes for endpoint
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - Interceptor - active account selected
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [01974275-1a93-72ef-acf1-3203eb54c6b3] : @azure/[email protected] : Verbose - acquireTokenSilent called
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [01974275-1a93-72ef-acf1-3203eb54c6b3] : @azure/[email protected] : Verbose - acquireTokenSilent has been called previously, returning the result from the first call
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - MSAL Interceptor activated
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - Interceptor - getting scopes for endpoint
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - Interceptor - active account selected
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [01974275-1a9f-7461-a1ec-132c43330578] : @azure/[email protected] : Verbose - acquireTokenSilent called
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [01974275-1a9f-7461-a1ec-132c43330578] : @azure/[email protected] : Verbose - acquireTokenSilent has been called previously, returning the result from the first call
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - MSAL Interceptor activated
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - Interceptor - getting scopes for endpoint
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - Interceptor - active account selected
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [01974275-1ab8-76fd-bf8c-e360d0117243] : @azure/[email protected] : Verbose - acquireTokenSilent called
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [01974275-1ab8-76fd-bf8c-e360d0117243] : @azure/[email protected] : Verbose - acquireTokenSilent has been called previously, returning the result from the first call
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - MSAL Interceptor activated
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - Interceptor - getting scopes for endpoint
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - Interceptor - active account selected
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [01974275-1b30-7a65-bdc2-ba8e76d9a636] : @azure/[email protected] : Verbose - acquireTokenSilent called
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [01974275-1b30-7a65-bdc2-ba8e76d9a636] : @azure/[email protected] : Verbose - acquireTokenSilent has been called previously, returning the result from the first call
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - MSAL Interceptor activated
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - Interceptor - getting scopes for endpoint
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - Interceptor - active account selected
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [01974275-1b52-77bf-a8c7-55d1d2f7fd95] : @azure/[email protected] : Verbose - acquireTokenSilent called
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [01974275-1b52-77bf-a8c7-55d1d2f7fd95] : @azure/[email protected] : Verbose - acquireTokenSilent has been called previously, returning the result from the first call
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - MSAL Interceptor activated
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - Interceptor - getting scopes for endpoint
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [] : @azure/[email protected] : Verbose - Interceptor - active account selected
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [01974275-1b9e-7821-9af0-1afdccf5a053] : @azure/[email protected] : Verbose - acquireTokenSilent called
AppInitializer.ts:53 BKHP - Msal|Verbose: [Thu, 05 Jun 2025 23:37:40 GMT] : [01974275-1b9e-7821-9af0-1afdccf5a053] : @azure/[email protected] : Verbose - acquireTokenSilent has been called previously, returning the result from the first call
app-routing.module.ts:17 Highcharts warning: Consider including the "accessibility.js" module to make your chart more usable for people with disabilities. Set the "accessibility.enabled" option to false to remove this warning. See https://www.highcharts.com/docs/accessibility/accessibility-module.
(anonymous) @ highstock.js:65
C @ highstock.js:182
r @ highstock.js:58
warnIfA11yModuleNotLoaded @ highstock.js:8186
onload @ highstock.js:8176
firstRender @ highstock.js:8171
(anonymous) @ highstock.js:7661
C @ highstock.js:182
init @ highstock.js:7656
init @ highstock.js:13221
Q @ highstock.js:7641
C @ highstock.js:13179
t3.stockChart @ highstock.js:13389
updateOrCreateChart @ highcharts-angular.mjs:33
wrappedUpdateOrCreateChart @ highcharts-angular.mjs:26
ngOnChanges @ highcharts-angular.mjs:14
rememberChangeHistoryAndInvokeOnChangesHook @ core.mjs:3975
callHookInternal @ core.mjs:5004
callHook @ core.mjs:5031
callHooks @ core.mjs:4988
executeInitAndCheckHooks @ core.mjs:4943
refreshView @ core.mjs:13339
detectChangesInView @ core.mjs:13533
detectChangesInViewIfAttached @ core.mjs:13495
detectChangesInComponent @ core.mjs:13484
detectChangesInChildComponents @ core.mjs:13545
refreshView @ core.mjs:13377
detectChangesInView @ core.mjs:13533
detectChangesInViewIfAttached @ core.mjs:13495
detectChangesInEmbeddedViews @ core.mjs:13455
refreshView @ core.mjs:13352
detectChangesInView @ core.mjs:13533
detectChangesInViewIfAttached @ core.mjs:13495
detectChangesInComponent @ core.mjs:13484
detectChangesInChildComponents @ core.mjs:13545
refreshView @ core.mjs:13377
detectChangesInView @ core.mjs:13533
detectChangesInViewIfAttached @ core.mjs:13495
detectChangesInComponent @ core.mjs:13484
detectChangesInChildComponents @ core.mjs:13545
refreshView @ core.mjs:13377
detectChangesInView @ core.mjs:13533
detectChangesInViewIfAttached @ core.mjs:13495
detectChangesInEmbeddedViews @ core.mjs:13455
refreshView @ core.mjs:13352
detectChangesInView @ core.mjs:13533
detectChangesInViewIfAttached @ core.mjs:13495
detectChangesInComponent @ core.mjs:13484
detectChangesInChildComponents @ core.mjs:13545
refreshView @ core.mjs:13377
detectChangesInView @ core.mjs:13533
detectChangesInViewIfAttached @ core.mjs:13495
detectChangesInEmbeddedViews @ core.mjs:13455
refreshView @ core.mjs:13352
detectChangesInView @ core.mjs:13533
detectChangesInViewIfAttached @ core.mjs:13495
detectChangesInComponent @ core.mjs:13484
detectChangesInChildComponents @ core.mjs:13545
refreshView @ core.mjs:13377
detectChangesInView @ core.mjs:13533
detectChangesInViewWhileDirty @ core.mjs:13244
detectChangesInternal @ core.mjs:13225
detectChangesInViewIfRequired @ core.mjs:32059
detectChangesInAttachedViews @ core.mjs:31888
_tick @ core.mjs:31854
tick @ core.mjs:31843
(anonymous) @ core.mjs:32239
invoke @ zone.js:369
onInvoke @ core.mjs:7025
invoke @ zone.js:368
run @ zone.js:111
run @ core.mjs:6886
next @ core.mjs:32238
ConsumerObserver2.next @ Subscriber.js:90
Subscriber2._next @ Subscriber.js:59
Subscriber2.next @ Subscriber.js:32
(anonymous) @ Subject.js:41
errorContext @ errorContext.js:23
Subject2.next @ Subject.js:31
emit @ core.mjs:6579
checkStable @ core.mjs:6953
onHasTask @ core.mjs:7051
hasTask @ zone.js:422
_updateTaskCount @ zone.js:443
_updateTaskCount @ zone.js:264
runTask @ zone.js:177
drainMicroTaskQueue @ zone.js:581
Promise.then
nativeScheduleMicroTask @ zone.js:557
scheduleMicroTask @ zone.js:568
scheduleTask @ zone.js:391
onScheduleTask @ core.mjs:6701
scheduleTask @ zone.js:382
onScheduleTask @ zone.js:271
scheduleTask @ zone.js:382
scheduleTask @ zone.js:205
scheduleMicroTask @ zone.js:225
scheduleResolveOrReject @ zone.js:2528
resolvePromise @ zone.js:2462
(anonymous) @ zone.js:2370
(anonymous) @ zone.js:2386
Promise.then
(anonymous) @ zone.js:2780
ZoneAwarePromise @ zone.js:2702
Ctor.then @ zone.js:2779
loadChildren @ app-routing.module.ts:17
loadChildren @ router.mjs:4392
loadChildren @ router.mjs:4353
(anonymous) @ router.mjs:3945
doInnerSub @ mergeInternals.js:21
outerNext @ mergeInternals.js:15
OperatorSubscriber2._this._next @ OperatorSubscriber.js:14
Subscriber2.next @ Subscriber.js:32
(anonymous) @ innerFrom.js:51
Observable2._trySubscribe @ Observable.js:33
(anonymous) @ Observable.js:27
errorContext @ errorContext.js:23
Observable2.subscribe @ Observable.js:23
mergeInternals @ mergeInternals.js:54
(anonymous) @ mergeMap.js:20
(anonymous) @ lift.js:10
(anonymous) @ Observable.js:27
errorContext @ errorContext.js:23
Observable2.subscribe @ Observable.js:23
(anonymous) @ switchMap.js:12
(anonymous) @ lift.js:10
(anonymous) @ Observable.js:27
errorContext @ errorContext.js:23
Observable2.subscribe @ Observable.js:23
(anonymous) @ switchMap.js:16
OperatorSubscriber2._this._next @ OperatorSubscriber.js:14
Subscriber2.next @ Subscriber.js:32
(anonymous) @ map.js:7
OperatorSubscriber2._this._next @ OperatorSubscriber.js:14
Subscriber2.next @ Subscriber.js:32
(anonymous) @ innerFrom.js:51
Observable2._trySubscribe @ Observable.js:33
(anonymous) @ Observable.js:27
errorContext @ errorContext.js:23
Observable2.subscribe @ Observable.js:23
(anonymous) @ map.js:6
(anonymous) @ lift.js:10
(anonymous) @ Observable.js:27
errorContext @ errorContext.js:23
Observable2.subscribe @ Observable.js:23
(anonymous) @ switchMap.js:12
(anonymous) @ lift.js:10
(anonymous) @ Observable.js:27
errorContext @ errorContext.js:23
Observable2.subscribe @ Observable.js:23
(anonymous) @ catchError.js:9
(anonymous) @ lift.js:10
(anonymous) @ Observable.js:27
errorContext @ errorContext.js:23
Observable2.subscribe @ Observable.js:23
doInnerSub @ mergeInternals.js:21
outerNext @ mergeInternals.js:15
OperatorSubscriber2._this._next @ OperatorSubscriber.js:14
Subscriber2.next @ Subscriber.js:32
(anonymous) @ innerFrom.js:51
Observable2._trySubscribe @ Observable.js:33
(anonymous) @ Observable.js:27
errorContext @ errorContext.js:23
Observable2.subscribe @ Observable.js:23
mergeInternals @ mergeInternals.js:54
(anonymous) @ mergeMap.js:20
(anonymous) @ lift.js:10
(anonymous) @ Observable.js:27
errorContext @ errorContext.js:23
Observable2.subscribe @ Observable.js:23
(anonymous) @ filter.js:6
(anonymous) @ lift.js:10
(anonymous) @ Observable.js:27
errorContext @ errorContext.js:23
Observable2.subscribe @ Observable.js:23
(anonymous) @ take.js:9
(anonymous) @ lift.js:10
(anonymous) @ Observable.js:27
errorContext @ errorContext.js:23
Observable2.subscribe @ Observable.js:23
(anonymous) @ throwIfEmpty.js:10
(anonymous) @ lift.js:10
(anonymous) @ Observable.js:27
errorContext @ errorContext.js:23
Observable2.subscribe @ Observable.js:23
(anonymous) @ catchError.js:9
(anonymous) @ lift.js:10
(anonymous) @ Observable.js:27
errorContext @ errorContext.js:23
Network Trace (Preferrably Fiddler)
- Sent
- Pending
MSAL Configuration
{
auth: {
clientId: response.authentication.clientId,
authority: response.authentication.authority,
redirectUri: response.authentication.redirectUri || '/',
postLogoutRedirectUri:
response.authentication.postLogoutRedirectUri || '/',
knownAuthorities: response.authentication.knownAuthorities,
},
cache: {
cacheLocation: BrowserCacheLocation.LocalStorage,
storeAuthStateInCookie: isIE, // set to true for IE 11
},
Relevant Code Snippets
initializeApp(response: any) {
this.msalClientApp = new PublicClientApplication({
auth: {
clientId: response.authentication.clientId,
authority: response.authentication.authority,
redirectUri: response.authentication.redirectUri || '/',
postLogoutRedirectUri:
response.authentication.postLogoutRedirectUri || '/',
knownAuthorities: response.authentication.knownAuthorities,
},
cache: {
cacheLocation: BrowserCacheLocation.LocalStorage,
storeAuthStateInCookie: isIE, // set to true for IE 11
},
system: {
loggerOptions: {
loggerCallback,
piiLoggingEnabled: false,
},
},
});
//Set the scopes
apiConfig.scopes = [
response.authentication.clientId,
response.authentication.authority,
];
this.msalGuardConfiguration = {
interactionType: InteractionType.Redirect,
authRequest: {
scopes: [response.authentication.authority],
authority: response.authentication.authority,
},
};
this.clientId = response.authentication.clientId;
this.msalInterceptorConfiguration = {
interactionType: InteractionType.Redirect,
protectedResourceMap: new Map<string, Array<string>>().set('/', [
response.authentication.clientId,
]),
};
this.appInsightsService.config = {
instrumentationKey: response.applicationInsights.instrumentationKey,
appId: 'UI',
};
// then make sure to initialize and start-up app insights
this.appInsightsService.init();
}
AppInitializer.ts
export class AppInitializer {
public msalGuardConfiguration: MsalGuardConfiguration = {
interactionType: InteractionType.Redirect,
authRequest: {
scopes: [...apiConfig.scopes],
authority: '',
},
};
public msalInterceptorConfiguration: MsalInterceptorConfiguration = {
interactionType: InteractionType.Redirect,
protectedResourceMap: new Map<string, Array<string>>().set(
apiConfig.uri,
apiConfig.scopes
),
};
Reproduction Steps
use msal angular library for token acquire and management.
Expected Behavior
expect only 1 token call and use the same token to make subsequent api calls until token is expired.
Identity Provider
Azure B2C Basic Policy
Browsers Affected (Select all that apply)
Chrome, Firefox, Edge
Regression
No response