Skip to content

DefaultAzureCredential continues past developer tool errors#24956

Merged
chlowell merged 2 commits intoAzure:mainfrom
chlowell:dac-clis
Jul 21, 2025
Merged

DefaultAzureCredential continues past developer tool errors#24956
chlowell merged 2 commits intoAzure:mainfrom
chlowell:dac-clis

Conversation

@chlowell
Copy link
Copy Markdown
Member

#21328 added the inDefaultChain option but neglected making NewDefaultAzureCredential set it

@chlowell chlowell self-assigned this Jul 18, 2025
@chlowell chlowell marked this pull request as ready for review July 18, 2025 22:48
Copilot AI review requested due to automatic review settings July 18, 2025 22:48
@chlowell chlowell requested review from a team, RickWinter and jhendrixMSFT as code owners July 18, 2025 22:48
Copy link
Copy Markdown
Contributor

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.

Pull Request Overview

This PR fixes a bug where DefaultAzureCredential was not properly configuring developer tool credentials (AzureCLICredential and AzureDeveloperCLICredential) to continue past errors when used in the default chain.

  • Adds the inDefaultChain: true option when creating both AzureCLICredential and AzureDeveloperCLICredential instances
  • Includes a test to verify the options are properly set on both credential types
  • Updates the changelog to document the behavioral change

Reviewed Changes

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

File Description
sdk/azidentity/default_azure_credential.go Sets inDefaultChain: true for CLI credential options
sdk/azidentity/default_azure_credential_test.go Adds test to verify CLI credentials have correct options
sdk/azidentity/CHANGELOG.md Documents the bug fix in Other Changes section

Comment thread sdk/azidentity/default_azure_credential_test.go
Comment thread sdk/azidentity/default_azure_credential_test.go
Comment thread sdk/azidentity/default_azure_credential_test.go Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-project-automation github-project-automation Bot moved this from Untriaged to In Progress in Azure Identity SDK Improvements Jul 18, 2025
@chlowell chlowell merged commit 4b8e5a1 into Azure:main Jul 21, 2025
11 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Azure Identity SDK Improvements Jul 21, 2025
@chlowell chlowell deleted the dac-clis branch July 21, 2025 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

3 participants