Open
Description
Core Library
MSAL Node (@azure/msal-node)
Core Library Version
1.14.2
Wrapper Library
Not Applicable
Wrapper Library Version
None
Public or Confidential Client?
Confidential
Description
When sending multiple calls to acquireTokenByClientCredential or acquireTokenOnBehalfOf in short period of time OIDC endpoint is being called for each request instead of reusing the same request.
Error Message
No response
Msal Logs
No response
MSAL Configuration
auth: {
clientId: clientId,
knownAuthorities: [authority],
clientCertificate: {
privateKey: cert.privateRSAKey,
thumbprint: cert.publicCER.getThumbprintHex(),
x5c: cert.publicCER.asPEM()
}
},
system: {
networkClient: this.httpModule
}
Relevant Code Snippets
Send multiple requests on a for loop to acquireTokenByClientCredential or acquireTokenOnBehalfOf and log http requests made to OIDC
Reproduction Steps
When sending multiple calls to acquireTokenByClientCredential or acquireTokenOnBehalfOf in short period of time OIDC endpoint is being called for each request instead of reusing the same request.
Expected Behavior
One call is send to OIDC and response is reused across other calls
Identity Provider
Azure AD / MSA
Browsers Affected (Select all that apply)
None (Server)
Regression
No response
Source
Internal (Microsoft)