Azure / azure-sdk-for-js

This repository is for active development of the Azure SDK for JavaScript (NodeJS & Browser). For consumers of the SDK we recommend visiting our public developer docs at https://docs.microsoft.com/javascript/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-js.
MIT License
2.06k stars 1.19k forks source link

BearerTokenAuthenticationPolicy should support CAE token revocation challenges by default #31185

Open christothes opened 1 week ago

christothes commented 1 week ago

This feature entails adding CAE support for all clients lacking a custom challenge handler i.e., everyone except Key Vault and Storage.

Adding support involves adding logic to your BearerTokenAuthenticationPolicy such that it does the following:

Example PRs: https://github.com/Azure/azure-sdk-for-go/pull/23414 https://github.com/Azure/azure-sdk-for-net/pull/46277

joshfree commented 1 week ago

stretch: october release cycle, pending access to test resources this week

jeremymeng commented 6 days ago

We have this related code in JS: https://github.com/Azure/azure-sdk-for-js/blob/51696d66aa7827167fe8c4714648d51664ab12e2/sdk/core/core-client/src/authorizeRequestOnClaimChallenge.ts#L60