question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[FEATURE REQ] Support custom Client App ID in DefaultAzureCredential (currently hard-coded to use the az cli client ID)

See original GitHub issue

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: 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:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jsquirecommented, Dec 9, 2020

Thank you for your feedback. Tagging and routing to the team member best able to assist.

0reactions
msftbot[bot]commented, Nov 12, 2021

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found