Langue

JwtTokenValidation.ValidateAuthHeader Méthode

Définition

Surcharges

Nom Description
ValidateAuthHeader(String, ICredentialProvider, IChannelProvider, String, String, HttpClient)

Valide l’en-tête d’authentification d’une requête entrante.

ValidateAuthHeader(String, ICredentialProvider, IChannelProvider, String, AuthenticationConfiguration, String, HttpClient)

Valide l’en-tête d’authentification d’une requête entrante.

ValidateAuthHeader(String, ICredentialProvider, IChannelProvider, String, String, HttpClient)

Valide l’en-tête d’authentification d’une requête entrante.

public static System.Threading.Tasks.Task<System.Security.Claims.ClaimsIdentity> ValidateAuthHeader(string authHeader, Microsoft.Bot.Connector.Authentication.ICredentialProvider credentials, Microsoft.Bot.Connector.Authentication.IChannelProvider channelProvider, string channelId, string serviceUrl = default, System.Net.Http.HttpClient httpClient = default);
static member ValidateAuthHeader : string * Microsoft.Bot.Connector.Authentication.ICredentialProvider * Microsoft.Bot.Connector.Authentication.IChannelProvider * string * string * System.Net.Http.HttpClient -> System.Threading.Tasks.Task<System.Security.Claims.ClaimsIdentity>
Public Shared Function ValidateAuthHeader (authHeader As String, credentials As ICredentialProvider, channelProvider As IChannelProvider, channelId As String, Optional serviceUrl As String = Nothing, Optional httpClient As HttpClient = Nothing) As Task(Of ClaimsIdentity)

Paramètres

authHeader
String

En-tête d’authentification à valider.

credentials
ICredentialProvider

Fournisseur d’informations d’identification du bot.

channelProvider
IChannelProvider

Fournisseur de services de canal du bot.

channelId
String

ID du canal qui a envoyé la requête.

serviceUrl
String

URL du service pour l’activité.

httpClient
HttpClient

Client HTTP.

Retours

Tâche qui représente le travail mis en file d’attente à exécuter.

Remarques

Si la tâche est terminée avec succès, le résultat contient l’identité basée sur les revendications pour la requête.

S’applique à

ValidateAuthHeader(String, ICredentialProvider, IChannelProvider, String, AuthenticationConfiguration, String, HttpClient)

Valide l’en-tête d’authentification d’une requête entrante.

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

Paramètres

authHeader
String

En-tête d’authentification à valider.

credentials
ICredentialProvider

Fournisseur d’informations d’identification du bot.

channelProvider
IChannelProvider

Fournisseur de services de canal du bot.

channelId
String

ID du canal qui a envoyé la requête.

authConfig
AuthenticationConfiguration

Configuration de l’authentification.

serviceUrl
String

URL du service pour l’activité.

httpClient
HttpClient

Client HTTP.

Retours

Tâche qui représente le travail mis en file d’attente à exécuter.

Remarques

Si la tâche est terminée avec succès, le résultat contient l’identité basée sur les revendications pour la requête.

S’applique à