UserTokenProvider.GetAuthenticationHeaderAsync(CancellationToken) Method

Definition

Gets an access token from the token cache or from AD authentication endpoint. Will attempt to refresh the access token if it has expired.

public virtual System.Threading.Tasks.Task<System.Net.Http.Headers.AuthenticationHeaderValue> GetAuthenticationHeaderAsync (System.Threading.CancellationToken cancellationToken);
abstract member GetAuthenticationHeaderAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Net.Http.Headers.AuthenticationHeaderValue>
override this.GetAuthenticationHeaderAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Net.Http.Headers.AuthenticationHeaderValue>
Public Overridable Function GetAuthenticationHeaderAsync (cancellationToken As CancellationToken) As Task(Of AuthenticationHeaderValue)

Parameters

cancellationToken
CancellationToken

Returns

Implements

Applies to