Closed ahsonkhan closed 3 weeks ago
/azp run cpp - keyvault
API change check
API changes are not detected in this pull request.
https://github.com/Azure/azure-sdk-for-cpp/pull/6190 supersedes this and hence limiting the token cache invalidation only to bearer token authentication policy is not necessary. The same invalidation can (and should) be applied to the challenge-based authentication flows as well.
It turned out most of the KeyVault challenge base authentication policy tests were failing due to an existing overflow issue which happened to be exposed when we set the minimum expiration to a really large value (in https://github.com/Azure/azure-sdk-for-cpp/pull/6151). That overflow issue has been fixed in https://github.com/Azure/azure-sdk-for-cpp/pull/6190 and the remaining failing KeyVault test has been updated to reflect the expected behavior in https://github.com/Azure/azure-sdk-for-cpp/pull/6191
When the
AuthenticateAndAuthorizeRequest
function gets invoked from ChallengeBasedAuth in KeyVault, tokenRequestContext != m_tokenRequestContext. When we use stock BearerTokenAuthenticationPolicy , tokenRequestContext == m_tokenRequestContext.