Creates an instance of the DefaultAzureCredential class with DefaultAzureCredentialClientIdOptions
This credential provides a default ChainedTokenCredential configuration that should work for most applications that use the Azure SDK.
The following credential types will be tried, in order:
Consult the documentation of these credential types for more information on how they attempt authentication.
Note: VisualStudioCodeCredential
is provided by a plugin package:
@azure/identity-vscode
. If this package is not installed and registered
using the plugin API (useIdentityPlugin
), then authentication using
VisualStudioCodeCredential
will not be available.
Optional parameters. See DefaultAzureCredentialClientIdOptions.
Creates an instance of the DefaultAzureCredential class with DefaultAzureCredentialResourceIdOptions
This credential provides a default ChainedTokenCredential configuration that should work for most applications that use the Azure SDK.
The following credential types will be tried, in order:
Consult the documentation of these credential types for more information on how they attempt authentication.
Note: VisualStudioCodeCredential
is provided by a plugin package:
@azure/identity-vscode
. If this package is not installed and registered
using the plugin API (useIdentityPlugin
), then authentication using
VisualStudioCodeCredential
will not be available.
Optional parameters. See DefaultAzureCredentialClientIdOptions.
Creates an instance of the DefaultAzureCredential class with DefaultAzureCredentialOptions
This credential provides a default ChainedTokenCredential configuration that should work for most applications that use the Azure SDK.
The following credential types will be tried, in order:
Consult the documentation of these credential types for more information on how they attempt authentication.
Note: VisualStudioCodeCredential
is provided by a plugin package:
@azure/identity-vscode
. If this package is not installed and registered
using the plugin API (useIdentityPlugin
), then authentication using
VisualStudioCodeCredential
will not be available.
Optional parameters. See DefaultAzureCredentialClientIdOptions.
The message to use when the chained token fails to get a token
Returns the first access token returned by one of the chained
TokenCredential
implementations. Throws an AggregateAuthenticationError
when one or more credentials throws an AuthenticationError and
no credentials have returned an access token.
This method is called automatically by Azure SDK client libraries. You may call this method directly, but you must also handle token caching and token refreshing.
The list of scopes for which the token will have access.
The options used to configure any requests this
TokenCredential
implementation might make.
Generated using TypeDoc
Provides a default ChainedTokenCredential configuration that should work for most applications that use the Azure SDK. Provides a default ChainedTokenCredential configuration for applications that will be deployed to Azure.
Only available in Node.js.