Microsoft-authentication-library-for-js: Multiple OpenID Connect Requests from Concurrent Access Token Requests

Created on 4 Jun 2018  路  6Comments  路  Source: AzureAD/microsoft-authentication-library-for-js

We have an Angular interceptor to obtain our access tokens. We might fire numerous http requests that need an access token.

I've noticed the library handles this in that it only issues one access token request and tells the others to wait which is great. But it still fires multiple requests for the OpenID configuration.

Is that expected? Seems wasteful...

image

bug performance

Most helpful comment

@spottedmahn We are tracking this issue after our 1.0.0 release.

All 6 comments

@spottedmahn We are tracking this issue after our 1.0.0 release.

@spottedmahn Is this still an issue?

no clue, sorry, not doing B2C stuff these days

I haven't seen this issue since the release of v1.1.2. The fix might be related to #875 as was mentioned by @sameerag over on issue #762

@spottedmahn @RobARichardson We reviewed this as a team and found that these request responses are being served from the browser cache, not making network calls. Can you please verify the Size column and see if this is the case? It should say (disk cache) in the Size field for the relevant requests.

Closing this as we did not get a response. As mentioned above the responses are being served from the browser cache and should not have a performance impact.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Calamari picture Calamari  路  3Comments

yakimko picture yakimko  路  3Comments

Anees-Raja picture Anees-Raja  路  3Comments

exequeryphil picture exequeryphil  路  3Comments

spottedmahn picture spottedmahn  路  3Comments