This repository is for active development of the Azure SDK for C++. For consumers of the SDK we recommend visiting our versioned developer docs at https://azure.github.io/azure-sdk-for-cpp.
MIT License
177
stars
126
forks
source link
Fix KeyVaultChallengeBasedAuthenticationPolicy test MultipleTimes since the bearer token policy now invalidates the token cache on receiving a 401. #6191
With https://github.com/Azure/azure-sdk-for-cpp/pull/6151 and subsequent overflow fix https://github.com/Azure/azure-sdk-for-cpp/pull/6190, this specific test behavior needs to be updated to match expectations.
We no longer return an older cached token, since those are rightly invalidated whenever a challenge response is received.
Fixes the test failure from https://dev.azure.com/azure-sdk/internal/_build/results?buildId=4308371&view=logs&j=d321cacd-258d-5801-407f-101c556a68a1&t=3eed5caa-5462-5e1e-56c8-8288eee731c0&l=36941