Skip to content

[Identity] Enable brokered auth in DAC #40335

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pvaneck
Copy link
Member

@pvaneck pvaneck commented Apr 2, 2025

Description

This adds InteractiveBrowserBrokerCredential silent flow authentication to the end of the DefaultAzureCredential chain. Here, we opt to conditionally add it to the chain only if the broker package is installed.

Additional context: https://gist.github.com/christothes/f8a0dc6249261cb36a6c452717c4e932

Closes: #39966

@azure-sdk
Copy link
Collaborator

azure-sdk commented Apr 2, 2025

API Change Check

APIView identified API level changes in this PR and created the following API reviews

azure-identity

@pvaneck pvaneck force-pushed the identity-dac-broker branch from bf20396 to e24dd7e Compare April 3, 2025 00:24
@pvaneck
Copy link
Member Author

pvaneck commented Apr 3, 2025

@xiangyan99 This is the preliminary implementation. Would be good to get your thoughts on:

  1. If we should introduce more keyword arguments for broker cred client_id/tenant_id or reuse interactive_browser_client_id and interactive_browser_tenant_id which I am currently doing.
  2. Since this is the silent flow and non-interactive, should we introduce this credential to the async DAC (even though it would be run synchronously)?

@pvaneck pvaneck requested a review from Copilot April 7, 2025 22:31
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

Files not reviewed (1)
  • sdk/identity/azure-identity/dev_requirements.txt: Language not supported

@pvaneck pvaneck marked this pull request as ready for review April 8, 2025 00:20
@pvaneck pvaneck requested a review from a team as a code owner April 8, 2025 00:20
@pvaneck pvaneck closed this Jun 9, 2025
@github-project-automation github-project-automation bot moved this from Untriaged to Done in Azure Identity SDK Improvements Jun 9, 2025
@pvaneck pvaneck reopened this Jun 30, 2025
Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
@pvaneck pvaneck force-pushed the identity-dac-broker branch from 736ae6f to 670aa2d Compare July 15, 2025 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Untriaged
Development

Successfully merging this pull request may close these issues.

DefaultAzureCredential: Re-enable SSO with VSCode on Windows
3 participants