-
Notifications
You must be signed in to change notification settings - Fork 323
Open
Open
Feature
Copy link
Labels
Azure.CoreThe azure_core crateThe azure_core crateAzure.IdentityThe azure_identity crateThe azure_identity crateBlockedBlocked-ExternalIssues blocked on external teams or dependencies.Issues blocked on external teams or dependencies.ClientThis issue points to a problem in the data-plane of the library.This issue points to a problem in the data-plane of the library.design-discussionAn area of design currently under discussion and open to team and community feedback.An area of design currently under discussion and open to team and community feedback.
Milestone
Description
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:
- Detects when a CAE challenge is issued (401 response with a WWW-Authenticate header)
- Parses the WWW-Authenticate header (format here)
- validate that the
errorvalue is "insufficient_claims" - capture the
claimsvalue and decode it from base64 encoding to a string
- validate that the
- Pass the string value of the un-encoded
claimsto theTokenCredentialvia theTokenRequestContextor equivalent for your language via theClaimsproperty - Ensure that any local token caching is bypassed in the policy when the claims are populated from a CAE challenge
- Authorize the original request with the new token and send it through the pipeline again
- Return any response to the caller (don't try to handle a second challenge)
Example PRs:
Azure/azure-sdk-for-go#23414
Azure/azure-sdk-for-net#46277
Metadata
Metadata
Assignees
Labels
Azure.CoreThe azure_core crateThe azure_core crateAzure.IdentityThe azure_identity crateThe azure_identity crateBlockedBlocked-ExternalIssues blocked on external teams or dependencies.Issues blocked on external teams or dependencies.ClientThis issue points to a problem in the data-plane of the library.This issue points to a problem in the data-plane of the library.design-discussionAn area of design currently under discussion and open to team and community feedback.An area of design currently under discussion and open to team and community feedback.
Type
Projects
Status
Blocked
Status
Blocked