Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DefaultAzureCredential

Package version

Provides a default ChainedTokenCredential configuration for applications that will be deployed to Azure. 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:

Only available in NodeJS.

Consult the documentation of these credential types for more information on how they attempt authentication.

Note: VisualStudioCodeCredential is provided by an extension package: @azure/identity-vscode. If this package is not installed and registered using the extension API (useIdentityExtension), then authentication using VisualStudioCodeCredential will not be available.

Azure Identity extensions may add credential types to the default credential stack.

Hierarchy

Implements

  • any
  • any

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Protected UnavailableMessage

UnavailableMessage: string = "ChainedTokenCredential => failed to retrieve a token from the included credentials"

The message to use when the chained token fails to get a token

Methods

getToken

  • getToken(): Promise<AccessToken>

Generated using TypeDoc