EmulatorValidation.AuthenticateEmulatorToken メソッド

定義

オーバーロード

名前 説明
AuthenticateEmulatorToken(String, ICredentialProvider, IChannelProvider, HttpClient, String)

Bot Framework Emulator から送信されたトークンとして、受信認証ヘッダーを検証します。

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

Bot Framework Emulator から送信されたトークンとして、受信認証ヘッダーを検証します。

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

Bot Framework Emulator から送信されたトークンとして、受信認証ヘッダーを検証します。

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)

パラメーター

authHeader
String

形式の生の HTTP ヘッダー: "Bearer [longString]"。

credentials
ICredentialProvider

AppId など、有効な資格情報のユーザー定義セット。

channelProvider
IChannelProvider

パブリック Azure と米国政府機関向け Azure を区別する channelService 値。

httpClient
HttpClient

トークンの認証には、エンドースメントや関連書類の検証を呼び出す必要があります。 HttpClientはその通話を行うために使われます。 これらの通話は通常TLS接続を必要とし、設定や解約にコストがかかるため、共有HttpClientを推奨します。

channelId
String

検証するチャネルの ID。

返品

有効な ClaimsIdentity。

注釈

Bot Framework によって発行されたトークンは、このチェックに失敗します。 エミュレーター トークンのみが渡されます。

適用対象

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

Bot Framework Emulator から送信されたトークンとして、受信認証ヘッダーを検証します。

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)

パラメーター

authHeader
String

形式の生の HTTP ヘッダー: "Bearer [longString]"。

credentials
ICredentialProvider

AppId など、有効な資格情報のユーザー定義セット。

channelProvider
IChannelProvider

パブリック Azure と米国政府機関向け Azure を区別する channelService 値。

httpClient
HttpClient

トークンの認証には、エンドースメントや関連書類の検証を呼び出す必要があります。 HttpClientはその通話を行うために使われます。 これらの通話は通常TLS接続を必要とし、設定や解約にコストがかかるため、共有HttpClientを推奨します。

channelId
String

検証するチャネルの ID。

authConfig
AuthenticationConfiguration

認証構成。

返品

有効な ClaimsIdentity。

注釈

Bot Framework によって発行されたトークンは、このチェックに失敗します。 エミュレーター トークンのみが渡されます。

適用対象