Closed
Description
openedon Apr 20, 2020
Is your feature request related to a problem? Please describe.
When authenticating calls for KeyVault Keys, the Java KeyVaultCredentialPolicy class always makes a naive call to obtain a challenge that could be used to get an access token in case there is none in the cache or the one it has is expired.
Describe the solution you'd like
The KeyVaultCredentialPolicy only makes a call for a challenge AFTER making sure there is no token in the cache or if it has expired.
Describe alternatives you've considered
Caching the challenge like the .NET SDK does and using that instead in case there is no token or it has expired.
Information Checklist
- Description Added
- Expected solution specified
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment