[FEATURE REQ] Support custom Client App ID in DefaultAzureCredential (currently hard-coded to use the az cli client ID)
See original GitHub issueLibrary 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:
https://github.com/Azure/azure-sdk-for-net/blob/cd97a7ffcb948d5a6e21f3c3fc6ef0d4737b0424/sdk/identity/Azure.Identity/src/Constants.cs#L17
Adding something like a ClientAppId
property to DefaultAzureCredentialOptions
would be great (and I imagine not too hard to implement).
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
azure.identity.DefaultAzureCredential class
A default credential capable of handling most Azure SDK authentication scenarios. The identity it uses depends on the environment.
Read more >Azure Identity client library for .NET
A credential is a class which contains or can obtain the data needed for a service client to authenticate requests. Service clients across...
Read more >ManagedIdentityCredential authentication unavailable, no ...
Im trying to allow an app service (python) to get secrets from azure keyvault without the usage of hardcoded client id/secrets, therefore I`m ......
Read more >Graph sdk javascript. msgraph-sdk-dotnet Public Microsoft Gr
Encoding support in the Graph JS client library and documentation ... Replace {app-id} with your app ID and {api-version} with the Graph API...
Read more >azidentity
Azure CLI - If a user or service principal has authenticated via the Azure CLI az login command, DefaultAzureCredential will authenticate that ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you for your feedback. Tagging and routing to the team member best able to assist.
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!