JwtTokenValidation.AuthenticateRequest(IActivity, String, ICredentialProvider, AuthenticationConfiguration, HttpClient) Method

Definition

public static System.Threading.Tasks.Task<System.Security.Claims.ClaimsIdentity> AuthenticateRequest (Microsoft.Bot.Connector.IActivity activity, string authHeader, Microsoft.Bot.Connector.ICredentialProvider credentials, Microsoft.Bot.Connector.SkillAuthentication.AuthenticationConfiguration authConfig, System.Net.Http.HttpClient httpClient = default);
static member AuthenticateRequest : Microsoft.Bot.Connector.IActivity * string * Microsoft.Bot.Connector.ICredentialProvider * Microsoft.Bot.Connector.SkillAuthentication.AuthenticationConfiguration * System.Net.Http.HttpClient -> System.Threading.Tasks.Task<System.Security.Claims.ClaimsIdentity>
Public Shared Function AuthenticateRequest (activity As IActivity, authHeader As String, credentials As ICredentialProvider, authConfig As AuthenticationConfiguration, Optional httpClient As HttpClient = Nothing) As Task(Of ClaimsIdentity)

Parameters

activity
IActivity
authHeader
String
credentials
ICredentialProvider
httpClient
HttpClient

Returns

Task<ClaimsIdentity>

Applies to