-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Don't stop trying dev credentials on failures #35771
Conversation
API change check API changes are not detected in this pull request. |
sdk/identity/azure-identity/src/main/java/com/azure/identity/AzureCliCredential.java
Outdated
Show resolved
Hide resolved
sdk/identity/azure-identity/src/main/java/com/azure/identity/AzureCliCredential.java
Outdated
Show resolved
Hide resolved
Fixes Azure#34733 For our dev time credentials we want to always keep going. This change wraps any failure from the credentials in a `CredentialUnavailableException` so `ChainedTokenCredential` will continue them properly. It only does so in the context of a `ChainedTokenCredential`. Regular uses of these credentials is unaffected.
87a2af5
to
33f6a77
Compare
...ty/azure-identity/src/main/java/com/azure/identity/implementation/IdentityClientOptions.java
Show resolved
Hide resolved
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.
Hey, @billwert. Should this logic of always returning CredentialUnavailableException
for dev credentials also apply to user-created ChainedTokenCredentials
which may contain several dev credentials? Seems like only DAC has isChained
set to true
.
I don’t think so. Once you’re making your own chains you get to set your own policies. Think of this as a DAC policy, not a chained credential policy.
Thanks,
-Bill
…________________________________
From: Paul Van Eck ***@***.***>
Sent: Thursday, July 20, 2023 2:08:32 PM
To: Azure/azure-sdk-for-java ***@***.***>
Cc: Bill Wert ***@***.***>; Mention ***@***.***>
Subject: Re: [Azure/azure-sdk-for-java] Don't stop trying dev credentials on failures (PR #35771)
@pvaneck commented on this pull request.
Hey, @billwert<https://github.com/billwert>. Should this logic of always returning CredentialUnavailableException for dev credentials also apply to user-created ChainedTokenCredentials which may contain several dev credentials? Seems like only DAC has isChained set to true.
—
Reply to this email directly, view it on GitHub<#35771 (review)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABCQI4FKEREQ7ELFFN7ZCPDXRGM5BANCNFSM6AAAAAA2BAYCZE>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Fixes #34733
For our dev time credentials we want to always keep going. This change wraps any failure from the credentials in a
CredentialUnavailableException
soChainedTokenCredential
will continue them properly.