-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[FEATURE REQ] Support custom Client App ID in DefaultAzureCredential (currently hard-coded to use the az cli client ID) #17427
Comments
Thank you for your feedback. Tagging and routing to the team member best able to assist. |
Some credentials used by DefaultAzureCredential can be configured with a ClientId via the options. Is there a specific scenario where you've found this not to be possible? |
Hi @ohadschn. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text “ |
It looks likes things have changed since I opened this bug, specifically How about something like a unified |
/unresolve |
Could you talk a bit more about how the current configuration options prevent using the intended ClientId in your specific scenario? For example, in a production scenario, I would think that you'd have a very specific credential to target, such as ManagedIdentity. In a development scenario, you'd have control over which credential would be selected based on your dev environment configuration. My assumption is that it should be rare that the intended credential (and in effect the intended ClientId) in the chain is not chosen. Another thing to consider is that if you need more control over the credential chain and how it is configured, the |
Hi, we're sending this friendly reminder because we haven't heard back from you in 7 days. We need more information about this issue to help address it. Please be sure to give us your input. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you! |
Library or service name.
Azure.Identity
Is your feature request related to a problem? Please describe.
We have strict control over some of our AAD apps, where we allow only specific client IDs to access them.
Specifically, we do not allow the Azure CLI Client ID (04b07795-8ddb-461a-bbee-02f9e1bf7b46).
Unfortunately, when using
DefaultAzureCredential
, there is no way to specify the client ID to use:azure-sdk-for-net/sdk/identity/Azure.Identity/src/Constants.cs
Line 17 in cd97a7f
Adding something like a
ClientAppId
property toDefaultAzureCredentialOptions
would be great (and I imagine not too hard to implement).The text was updated successfully, but these errors were encountered: