Поделиться через


AzureCliCredential Class

Definition

Enables authentication to Microsoft Entra ID using Azure CLI to obtain an access token.

public class AzureCliCredential : Azure.Core.TokenCredential
type AzureCliCredential = class
    inherit TokenCredential
Public Class AzureCliCredential
Inherits TokenCredential
Inheritance

Constructors

AzureCliCredential()

Create an instance of AzureCliCredential class.

AzureCliCredential(AzureCliCredentialOptions)

Create an instance of AzureCliCredential class.

Methods

CreateTokenOptions(IReadOnlyDictionary<String,Object>)

Creates a new instance of GetTokenOptions using the provided properties.

(Inherited from TokenCredential)
GetToken(GetTokenOptions, CancellationToken)

Gets an AuthenticationToken for the provided properties.

(Inherited from TokenCredential)
GetToken(TokenRequestContext, CancellationToken)

Obtains a access token from Azure CLI credential, using this access token to authenticate. This method called by Azure SDK clients.

GetTokenAsync(GetTokenOptions, CancellationToken)

Gets an AuthenticationToken for the provided properties.

(Inherited from TokenCredential)
GetTokenAsync(TokenRequestContext, CancellationToken)

Obtains a access token from Azure CLI service, using the access token to authenticate. This method id called by Azure SDK clients.

Applies to