You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sdk/azidentity/README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,6 +76,7 @@ in any hosting environment which supports managed identities, such as (this list
76
76
77
77
-[Authenticate with DefaultAzureCredential](#authenticate-with-defaultazurecredential"Authenticate with DefaultAzureCredential")
78
78
-[Define a custom authentication flow with ChainedTokenCredential](#define-a-custom-authentication-flow-with-chainedtokencredential"Define a custom authentication flow with ChainedTokenCredential")
79
+
-[Specify a user-assigned managed identity for DefaultAzureCredential](#specify-a-user-assigned-managed-identity-for-defaultazurecredential)
### Specify a user-assigned managed identity for DefaultAzureCredential
95
+
96
+
To configure `DefaultAzureCredential` to authenticate a user-assigned managed identity, set the environment variable `AZURE_CLIENT_ID` to the identity's client ID.
93
97
94
98
### Define a custom authentication flow with `ChainedTokenCredential`
tenantIDValidationErr="invalid tenantID. You can locate your tenantID by following the instructions listed here: https://docs.microsoft.com/partner-center/find-ids-and-domain-names"
30
33
)
31
34
32
-
constazureAuthorityHost="AZURE_AUTHORITY_HOST"
33
-
34
35
// setAuthorityHost initializes the authority host for credentials. Precedence is:
35
36
// 1. cloud.Configuration.LoginEndpoint value set by user
0 commit comments