Jaa


AseChannelValidation.AuthenticateAseTokenAsync Method

Definition

Overloads

AuthenticateAseTokenAsync(String, HttpClient)

Validate the incoming Auth Header as a token sent from the AseChannel.

AuthenticateAseTokenAsync(String, HttpClient, AuthenticationConfiguration)

Validate the incoming Auth Header as a token sent from the AseChannel.

AuthenticateAseTokenAsync(String, HttpClient)

Validate the incoming Auth Header as a token sent from the AseChannel.

public static System.Threading.Tasks.Task<System.Security.Claims.ClaimsIdentity> AuthenticateAseTokenAsync (string authHeader, System.Net.Http.HttpClient httpClient = default);
static member AuthenticateAseTokenAsync : string * System.Net.Http.HttpClient -> System.Threading.Tasks.Task<System.Security.Claims.ClaimsIdentity>
Public Shared Function AuthenticateAseTokenAsync (authHeader As String, Optional httpClient As HttpClient = Nothing) As Task(Of ClaimsIdentity)

Parameters

authHeader
String

The raw HTTP header in the format: "Bearer [longString]".

httpClient
HttpClient

Authentication of tokens requires calling out to validate Endorsements and related documents. The HttpClient is used for making those calls. Those calls generally require TLS connections, which are expensive to setup and teardown, so a shared HttpClient is recommended.

Returns

A valid ClaimsIdentity.

Applies to

AuthenticateAseTokenAsync(String, HttpClient, AuthenticationConfiguration)

Validate the incoming Auth Header as a token sent from the AseChannel.

public static System.Threading.Tasks.Task<System.Security.Claims.ClaimsIdentity> AuthenticateAseTokenAsync (string authHeader, System.Net.Http.HttpClient httpClient, Microsoft.Bot.Connector.Authentication.AuthenticationConfiguration authConfig);
static member AuthenticateAseTokenAsync : string * System.Net.Http.HttpClient * Microsoft.Bot.Connector.Authentication.AuthenticationConfiguration -> System.Threading.Tasks.Task<System.Security.Claims.ClaimsIdentity>
Public Shared Function AuthenticateAseTokenAsync (authHeader As String, httpClient As HttpClient, authConfig As AuthenticationConfiguration) As Task(Of ClaimsIdentity)

Parameters

authHeader
String

The raw HTTP header in the format: "Bearer [longString]".

httpClient
HttpClient

Authentication of tokens requires calling out to validate Endorsements and related documents. The HttpClient is used for making those calls. Those calls generally require TLS connections, which are expensive to setup and teardown, so a shared HttpClient is recommended.

authConfig
AuthenticationConfiguration

The authentication configuration.

Returns

A valid ClaimsIdentity.

Applies to