BotFrameworkAuthentication.AuthenticateRequestAsync Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Valideer Bot Framework Protocol-aanvragen.
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)
Parameters
- activity
- Activity
De inkomende activiteit.
- authHeader
- String
De http-authenticatieheader.
- cancellationToken
- CancellationToken
Een annuleringstoken.
Retouren
Asynchrone taak met AuthenticateRequestResult.
Uitzonderingen
Als de validatie onwaar is.