Share via


AdalAuthenticator.GetTokenAsync(Boolean) Method

Definition

Performs the call to acquire a security token.

public System.Threading.Tasks.Task<Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationResult> GetTokenAsync (bool forceRefresh = false);
member this.GetTokenAsync : bool -> System.Threading.Tasks.Task<Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationResult>
Public Function GetTokenAsync (Optional forceRefresh As Boolean = false) As Task(Of AuthenticationResult)

Parameters

forceRefresh
Boolean

Forces a token refresh by clearing the token cache and acquiring it again.

Returns

Task<Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationResult>

A Task<TResult> object.

Applies to