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.

azure.identity.DefaultAzureCredential.get_token docs do not explain scopes arg.

See original GitHub issue

What are scopes?

azure.identity.DefaultAzureCredential and other Credential classes have the method get_token with the arguments scopes and tenant_id, both of type str. It is not precisely explained what these arguments are or how they may be obtained.

It would be valuable to have a precise description here in the documentation or an example.

Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
stack-mrisocommented, Nov 29, 2022

Can you include the link you just sent to the scopes section in the documentation at least?

0reactions
msftbot[bot]commented, Dec 8, 2022

Hi @mhangaard, since you haven’t asked that we “/unresolve” the issue, we’ll close this out. If you believe further discussion is needed, please add a comment “/unresolve” to reopen the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

DefaultAzureCredential fails when multiple accounts ... - GitHub
Describe the bug I am using v1.0 of Azure.Identity on both .NET Framework and .NET Core and am attempting to connect to a...
Read more >
azure.identity.DefaultAzureCredential class - Microsoft Learn
A default credential capable of handling most Azure SDK authentication scenarios. The identity it uses depends on the environment. When an access token...
Read more >
Azure Identity client library for .NET - Microsoft Learn
The Azure Identity library provides Azure Active Directory (Azure AD) token authentication support across the Azure SDK.
Read more >
DefaultAzureCredential Class (Azure.Identity) - Microsoft Learn
Blobs client library using the DefaultAzureCredential, deployed to an Azure resource with a user assigned managed identity configured.
Read more >
Azure Identity client library for JavaScript | Microsoft Learn
Note: DefaultAzureCredential is intended to simplify getting started with the SDK by handling common scenarios with reasonable default behaviors ...
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