DefaultAzureCredential Class

Definition

Provides a default ChainedTokenCredential configuration for applications that will be deployed to Azure. The following credential types if enabled will be tried, in order:

public class DefaultAzureCredential : Azure.Identity.ChainedTokenCredential
type DefaultAzureCredential = class
    inherit ChainedTokenCredential
Public Class DefaultAzureCredential
Inherits ChainedTokenCredential
Inheritance

Constructors

DefaultAzureCredential()

Creates an instance of the DefaultAzureCredential class.

DefaultAzureCredential(DefaultAzureCredentialOptions)

Creates an instance of the DefaultAzureCredential class.

Methods

GetToken(String[], CancellationToken) (Inherited from TokenCredential)
GetToken(TokenRequest, CancellationToken)

Sequencially calls GetToken(TokenRequest, CancellationToken) on all the specified sources, returning the first non default AccessToken.

(Inherited from ChainedTokenCredential)
GetTokenAsync(String[], CancellationToken) (Inherited from TokenCredential)
GetTokenAsync(TokenRequest, CancellationToken)

Sequencially calls GetTokenAsync(TokenRequest, CancellationToken) on all the specified sources, returning the first non default AccessToken.

(Inherited from ChainedTokenCredential)

Applies to