-
Notifications
You must be signed in to change notification settings - Fork 3.3k
{Auth} Do not wrap MSIAuthenticationWrapper with CredentialAdaptor
#30962
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
Conversation
️✔️AzureCLI-FullTest
|
️✔️AzureCLI-BreakingChangeTest
|
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
|
The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR. Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions). pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
|
|
I initially made a more complex attempt by letting
But this requires all invocations to azure-cli/src/azure-cli-core/azure/cli/core/_profile.py Lines 206 to 209 in 3b70655
azure-cli/src/azure-cli-core/azure/cli/core/_profile.py Lines 716 to 720 in 3b70655
except for
This requires much more changes than this PR's implementation. |
FumingZhang
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I tested the change via AKS live test pipeline, and the identity login is functioning as expected.
Related command
az login --identityDescription
Thanks to @FumingZhang for reporting this issue.
#29955 breaks managed identity authentication:
This is because
MSIAuthenticationWrapperis unnecessarily wrapped byCredentialAdaptor, causingCredentialAdaptorto callacquire_tokenon it.Testing Guide
az login --identity