Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optional auth challenge handling to BearerTokenPolicy #19448

Merged
merged 5 commits into from
Nov 8, 2022

Conversation

chlowell
Copy link
Member

Closes #17554 by adding a couple of extension points SDK developers can use to insert custom logic around BearerTokenPolicy's default behavior. These allow clients to elicit challenges (to discover auth parameters) and to handle them, without having to copy and tweak BearerTokenPolicy, as we've done for Key Vault and ARM. This will simplify supporting CAE and ARM cross-tenant authentication. #19447 has a draft implementation for Key Vault showing this new API in use.

@chlowell chlowell added Client This issue points to a problem in the data-plane of the library. Mgmt This issue is related to a management-plane library. Azure.Core labels Oct 28, 2022
Copy link
Member

@richardpark-msft richardpark-msft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonable to me. Leave the final judgement to @jhendrixMSFT, of course.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Azure.Core Client This issue points to a problem in the data-plane of the library. Mgmt This issue is related to a management-plane library.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add authentication challenge support to BearerTokenPolicy
5 participants