Langue

ChannelValidation.AuthenticateChannelToken Méthode

Définition

Surcharges

Nom Description
AuthenticateChannelToken(String, ICredentialProvider, HttpClient, String)

Validez l’en-tête d’authentification entrant en tant que jeton envoyé à partir du service Bot Framework.

AuthenticateChannelToken(String, ICredentialProvider, HttpClient, String, AuthenticationConfiguration)

Validez l’en-tête d’authentification entrant en tant que jeton envoyé à partir du service Bot Framework.

AuthenticateChannelToken(String, ICredentialProvider, String, HttpClient, String)

Validez l’en-tête d’authentification entrant en tant que jeton envoyé à partir du service Bot Framework.

AuthenticateChannelToken(String, ICredentialProvider, String, HttpClient, String, AuthenticationConfiguration)

Validez l’en-tête d’authentification entrant en tant que jeton envoyé à partir du service Bot Framework.

AuthenticateChannelToken(String, ICredentialProvider, HttpClient, String)

Validez l’en-tête d’authentification entrant en tant que jeton envoyé à partir du service Bot Framework.

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

Paramètres

authHeader
String

En-tête HTTP brut au format : « Bearer [longString] ».

credentials
ICredentialProvider

L’utilisateur a défini un ensemble d’informations d’identification valides, telles que l’AppId.

httpClient
HttpClient

L’authentification des jetons nécessite de valider les Endossements et documents associés. Le client Http est utilisé pour effectuer ces appels. Ces appels nécessitent généralement des connexions TLS, qui sont coûteuses à configurer et à démonter, donc un client Http partagé est recommandé.

channelId
String

ID du canal à valider.

Retours

ClaimsIdentity valide.

Remarques

Un jeton émis par l’émulateur Bot Framework échoue cette vérification.

S’applique à

AuthenticateChannelToken(String, ICredentialProvider, HttpClient, String, AuthenticationConfiguration)

Validez l’en-tête d’authentification entrant en tant que jeton envoyé à partir du service Bot Framework.

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

Paramètres

authHeader
String

En-tête HTTP brut au format : « Bearer [longString] ».

credentials
ICredentialProvider

L’utilisateur a défini un ensemble d’informations d’identification valides, telles que l’AppId.

httpClient
HttpClient

L’authentification des jetons nécessite de valider les Endossements et documents associés. Le client Http est utilisé pour effectuer ces appels. Ces appels nécessitent généralement des connexions TLS, qui sont coûteuses à configurer et à démonter, donc un client Http partagé est recommandé.

channelId
String

ID du canal à valider.

authConfig
AuthenticationConfiguration

Configuration de l’authentification.

Retours

ClaimsIdentity valide.

Remarques

Un jeton émis par l’émulateur Bot Framework échoue cette vérification.

S’applique à

AuthenticateChannelToken(String, ICredentialProvider, String, HttpClient, String)

Validez l’en-tête d’authentification entrant en tant que jeton envoyé à partir du service Bot Framework.

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

Paramètres

authHeader
String

En-tête HTTP brut au format : « Bearer [longString] ».

credentials
ICredentialProvider

L’utilisateur a défini un ensemble d’informations d’identification valides, telles que l’AppId.

serviceUrl
String

URL du service.

httpClient
HttpClient

L’authentification des jetons nécessite de valider les Endossements et documents associés. Le client Http est utilisé pour effectuer ces appels. Ces appels nécessitent généralement des connexions TLS, qui sont coûteuses à configurer et à démonter, donc un client Http partagé est recommandé.

channelId
String

ID du canal à valider.

Retours

PrétendsIdentité.

S’applique à

AuthenticateChannelToken(String, ICredentialProvider, String, HttpClient, String, AuthenticationConfiguration)

Validez l’en-tête d’authentification entrant en tant que jeton envoyé à partir du service Bot Framework.

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

Paramètres

authHeader
String

En-tête HTTP brut au format : « Bearer [longString] ».

credentials
ICredentialProvider

L’utilisateur a défini un ensemble d’informations d’identification valides, telles que l’AppId.

serviceUrl
String

URL du service.

httpClient
HttpClient

L’authentification des jetons nécessite de valider les Endossements et documents associés. Le client Http est utilisé pour effectuer ces appels. Ces appels nécessitent généralement des connexions TLS, qui sont coûteuses à configurer et à démonter, donc un client Http partagé est recommandé.

channelId
String

ID du canal à valider.

authConfig
AuthenticationConfiguration

Configuration de l’authentification.

Retours

PrétendsIdentité.

S’applique à