Langue

EmulatorValidation.AuthenticateEmulatorToken Méthode

Définition

Surcharges

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

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

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

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

AuthenticateEmulatorToken(String, ICredentialProvider, IChannelProvider, HttpClient, String)

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

public static System.Threading.Tasks.Task<System.Security.Claims.ClaimsIdentity> AuthenticateEmulatorToken(string authHeader, Microsoft.Bot.Connector.Authentication.ICredentialProvider credentials, Microsoft.Bot.Connector.Authentication.IChannelProvider channelProvider, System.Net.Http.HttpClient httpClient, string channelId);
static member AuthenticateEmulatorToken : string * Microsoft.Bot.Connector.Authentication.ICredentialProvider * Microsoft.Bot.Connector.Authentication.IChannelProvider * System.Net.Http.HttpClient * string -> System.Threading.Tasks.Task<System.Security.Claims.ClaimsIdentity>
Public Shared Function AuthenticateEmulatorToken (authHeader As String, credentials As ICredentialProvider, channelProvider As IChannelProvider, 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.

channelProvider
IChannelProvider

Valeur channelService qui distingue azure public d’Azure US Government.

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 Bot Framework échoue cette vérification. Seuls les jetons de l’émulateur passent.

S’applique à

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

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

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

channelProvider
IChannelProvider

Valeur channelService qui distingue azure public d’Azure US Government.

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 Bot Framework échoue cette vérification. Seuls les jetons de l’émulateur passent.

S’applique à