Compartir a través de


BotFrameworkAuthentication.AuthenticateRequestAsync Método

Definición

Valide las solicitudes de Bot Framework Protocol.

public abstract System.Threading.Tasks.Task<Microsoft.Bot.Connector.Authentication.AuthenticateRequestResult> AuthenticateRequestAsync (Microsoft.Bot.Schema.Activity activity, string authHeader, System.Threading.CancellationToken cancellationToken);
abstract member AuthenticateRequestAsync : Microsoft.Bot.Schema.Activity * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Connector.Authentication.AuthenticateRequestResult>
Public MustOverride Function AuthenticateRequestAsync (activity As Activity, authHeader As String, cancellationToken As CancellationToken) As Task(Of AuthenticateRequestResult)

Parámetros

activity
Activity

Actividad de entrada.

authHeader
String

Encabezado de autenticación http.

cancellationToken
CancellationToken

Token de cancelación.

Devoluciones

Tarea asincrónica con AuthenticateRequestResult.

Excepciones

Si la validación devuelve false.

Se aplica a