Compartilhar via


UserTokenProvider.GetAuthenticationHeaderAsync(CancellationToken) Método

Definição

Obtém um token de acesso do cache de token ou do ponto de extremidade de autenticação do AD. Tentará atualizar o token de acesso se ele tiver expirado.

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)

Parâmetros

cancellationToken
CancellationToken

Retornos

Implementações

Aplica-se a