[Feature Request] Properly asynchronous client assertions #879
Labels
confidential-client
For issues related to confidential client apps
Enhancement
A request or suggestion to improve some aspect of the library
MSAL client type
Confidential
Problem Statement
We use a client assertion as our client credential when building our confidential client application. This assertion comes from a file stored locally and gets refreshed every hour. At the moment the credential can only be created before the confidential client application is created, even when using the
createFromCallback
method meaning we need to create a whole new confidential client application everytime the token is refreshed.Proposed solution
Ideally we would like to build one confidential client application that refreshes this client credential on every acquire token request.
I can see that we can create a client credential from a callback using
createFromCallback
but this still gets executed when the confidential client is created. Ideally this callback should be executed when theacquireToken
method is called.Alternatives
At the moment we need to either create a new confidential client for every request or somehow build a new confidential client every time the token is updated.
The text was updated successfully, but these errors were encountered: