Compartilhar via


IApplicationAuthenticationProvider.AuthenticateAsync Método

Definição

Recuperar ClientCredentials para um aplicativo do Active Directory.

public System.Threading.Tasks.Task<Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationResult> AuthenticateAsync (string clientId, string audience, Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext context);
abstract member AuthenticateAsync : string * string * Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext -> System.Threading.Tasks.Task<Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationResult>
Public Function AuthenticateAsync (clientId As String, audience As String, context As AuthenticationContext) As Task(Of AuthenticationResult)

Parâmetros

clientId
String

A ID do cliente do Active Directory do aplicativo.

audience
String

O público-alvo

context
Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext

O contexto de autenticação

Retornos

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

resultado da autenticação que pode ser usado para autenticação com o público-alvo fornecido.

Aplica-se a