A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.microsoft.com/en-us/javascript/api/@azure/identity/environmentcredential below:

EnvironmentCredential class | Microsoft Learn

EnvironmentCredential class

Enables authentication to Microsoft Entra ID using a client secret or certificate.

Constructors EnvironmentCredential(EnvironmentCredentialOptions)

Creates an instance of the EnvironmentCredential class and decides what credential to use depending on the available environment variables.

Required environment variables:

If setting the AZURE_TENANT_ID, then you can also set the additionally allowed tenants

Environment variables used for client credential authentication:

Username and password authentication is deprecated, since it doesn't support multifactor authentication (MFA). See https://aka.ms/azsdk/identity/mfa for more details. Users can still provide environment variables for this authentication method:

If the environment variables required to perform the authentication are missing, a CredentialUnavailableError will be thrown. If the authentication fails, or if there's an unknown error, an AuthenticationError will be thrown.

Constructor Details EnvironmentCredential(EnvironmentCredentialOptions)

Creates an instance of the EnvironmentCredential class and decides what credential to use depending on the available environment variables.

Required environment variables:

If setting the AZURE_TENANT_ID, then you can also set the additionally allowed tenants

Environment variables used for client credential authentication:

Username and password authentication is deprecated, since it doesn't support multifactor authentication (MFA). See https://aka.ms/azsdk/identity/mfa for more details. Users can still provide environment variables for this authentication method:

If the environment variables required to perform the authentication are missing, a CredentialUnavailableError will be thrown. If the authentication fails, or if there's an unknown error, an AuthenticationError will be thrown.

new EnvironmentCredential(options?: EnvironmentCredentialOptions)
Parameters Method Details getToken(string | string[], GetTokenOptions)

Authenticates with Microsoft Entra ID and returns an access token if successful.

function getToken(scopes: string | string[], options?: GetTokenOptions): Promise<AccessToken>
Parameters
scopes

string | string[]

The list of scopes for which the token will have access.

Returns

Promise<AccessToken>


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4