Skip to content

Commit

Permalink
Replace DefaultAzureCredential auth flow diagram (Azure#17660)
Browse files Browse the repository at this point in the history
* Replace DefaultAzureCredential auth flow diagram

* Delete old diagram
  • Loading branch information
scottaddie authored Apr 19, 2022
1 parent 6edfd93 commit 8d5dc19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sdk/azidentity/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ an Azure AD access token. See [Credential Types](#credential-types "Credential T

`DefaultAzureCredential` is appropriate for most apps that will be deployed to Azure. It combines common production credentials with development credentials. It attempts to authenticate via the following mechanisms in this order, stopping when one succeeds:

![DefaultAzureCredential authentication flow](img/DAC_flow.PNG)
![DefaultAzureCredential authentication flow](img/mermaidjs/DefaultAzureCredentialAuthFlow.svg)

- Environment - `DefaultAzureCredential` will read account information specified via [environment variables](#environment-variables) and use it to authenticate.
- Managed Identity - If the app is deployed to an Azure host with managed identity enabled, `DefaultAzureCredential` will authenticate with it.
- Azure CLI - If a user or service principal has authenticated via the Azure CLI `az login` command, `DefaultAzureCredential` will authenticate that identity.
1. **Environment** - `DefaultAzureCredential` will read account information specified via [environment variables](#environment-variables) and use it to authenticate.
2. **Managed Identity** - If the app is deployed to an Azure host with managed identity enabled, `DefaultAzureCredential` will authenticate with it.
3. **Azure CLI** - If a user or service principal has authenticated via the Azure CLI `az login` command, `DefaultAzureCredential` will authenticate that identity.

> Note: `DefaultAzureCredential` is intended to simplify getting started with the SDK by handling common scenarios with reasonable default behaviors. Developers who want more control or whose scenario isn't served by the default settings should use other credential types.
Expand Down
Binary file removed sdk/azidentity/img/DAC_flow.PNG
Binary file not shown.

0 comments on commit 8d5dc19

Please sign in to comment.