Share via


ManagedIdentityAuthenticator.GetTokenAsync(Boolean) Method

Definition

Acquires the security token.

public System.Threading.Tasks.Task<Microsoft.Bot.Connector.Authentication.AuthenticatorResult> GetTokenAsync (bool forceRefresh = false);
abstract member GetTokenAsync : bool -> System.Threading.Tasks.Task<Microsoft.Bot.Connector.Authentication.AuthenticatorResult>
override this.GetTokenAsync : bool -> System.Threading.Tasks.Task<Microsoft.Bot.Connector.Authentication.AuthenticatorResult>
Public Function GetTokenAsync (Optional forceRefresh As Boolean = false) As Task(Of AuthenticatorResult)

Parameters

forceRefresh
Boolean

Tells the method to acquire a new token regardless of expiration.

Returns

A Task<TResult> object.

Implements

Applies to