UsernamePasswordCredential.Authenticate Method

Definition

Overloads

Authenticate(CancellationToken)

Authenticates the user using the specified username and password.

Authenticate(TokenRequestContext, CancellationToken)

Authenticates the user using the specified username and password.

Authenticate(CancellationToken)

Authenticates the user using the specified username and password.

public virtual Azure.Identity.AuthenticationRecord Authenticate (System.Threading.CancellationToken cancellationToken = default);
abstract member Authenticate : System.Threading.CancellationToken -> Azure.Identity.AuthenticationRecord
override this.Authenticate : System.Threading.CancellationToken -> Azure.Identity.AuthenticationRecord
Public Overridable Function Authenticate (Optional cancellationToken As CancellationToken = Nothing) As AuthenticationRecord

Parameters

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

AuthenticationRecord

The AuthenticationRecord of the authenticated account.

Applies to

Authenticate(TokenRequestContext, CancellationToken)

Authenticates the user using the specified username and password.

public virtual Azure.Identity.AuthenticationRecord Authenticate (Azure.Core.TokenRequestContext requestContext, System.Threading.CancellationToken cancellationToken = default);
abstract member Authenticate : Azure.Core.TokenRequestContext * System.Threading.CancellationToken -> Azure.Identity.AuthenticationRecord
override this.Authenticate : Azure.Core.TokenRequestContext * System.Threading.CancellationToken -> Azure.Identity.AuthenticationRecord
Public Overridable Function Authenticate (requestContext As TokenRequestContext, Optional cancellationToken As CancellationToken = Nothing) As AuthenticationRecord

Parameters

requestContext
TokenRequestContext

The details of the authentication request.

cancellationToken
CancellationToken

A CancellationToken controlling the request lifetime.

Returns

AuthenticationRecord

The AuthenticationRecord of the authenticated account.

Applies to