Token credential with local cache #3835
Labels
Azure.Identity
Client
This issue points to a problem in the data-plane of the library.
feature-request
This issue requires a new behavior in the product in order be resolved.
Milestone
We got a feature request from one of our customers.
Basically they're using token credential for authorization and they need different client options (like retry options) for different kind of requests so they need to initialize many clients for those requests.
The problem is the access token is cached in
BearerTokenAuthenticationPolicy
, which is created when initializing a blob client. So the access token cannot be shared among these blob clients even though requests are sent to the same storage account.I'm looking for some way to fix this problem and while I'm looking at .Net code, I found SharedTokenCacheCredential. I think such a credential with local cache can work in this scenario.
@RickWinter @antkmsft What do you think? Can we provide the same credential in C++?
The text was updated successfully, but these errors were encountered: