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

BearerTokenChallengeAuthorizationPolicy extracting tenant ID #44280

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

ibrahimrabab
Copy link
Contributor

Description

resolves #44167

@ibrahimrabab ibrahimrabab requested a review from g2vinay February 20, 2025 02:10
@github-actions github-actions bot added the Storage Storage Service (Queues, Blobs, Files) label Feb 20, 2025
if (scope != null) {
String authorization = challenges.get("authorization_uri");

if (scope != null && authorization != null) {
Copy link
Member

Choose a reason for hiding this comment

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

authorization check should be in separate independent if block and then parse the tenant ID.
While its not common but its possible that authorization_uri is not present but scope/resource id is, need to accomodate this scenario.

@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Storage Storage Service (Queues, Blobs, Files)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Storage clients should use tenant ID from authentication challenge
3 participants