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

[Feature Request] Properly asynchronous client assertions #879

Open
q-benwillis opened this issue Nov 21, 2024 · 0 comments
Open

[Feature Request] Properly asynchronous client assertions #879

q-benwillis opened this issue Nov 21, 2024 · 0 comments
Labels
confidential-client For issues related to confidential client apps Enhancement A request or suggestion to improve some aspect of the library

Comments

@q-benwillis
Copy link

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 the acquireToken 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.

@q-benwillis q-benwillis added needs attention Automatically used when an issue is created through an issue template untriaged Automatically used when an issue is created through an issue template labels Nov 21, 2024
@Avery-Dunn Avery-Dunn added Enhancement A request or suggestion to improve some aspect of the library confidential-client For issues related to confidential client apps and removed needs attention Automatically used when an issue is created through an issue template untriaged Automatically used when an issue is created through an issue template labels Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confidential-client For issues related to confidential client apps Enhancement A request or suggestion to improve some aspect of the library
Projects
None yet
Development

No branches or pull requests

2 participants