Language

JwtTokenValidation.AuthenticateRequest メソッド

定義

オーバーロード

名前 説明
AuthenticateRequest(IActivity, String, ICredentialProvider, IChannelProvider, HttpClient)

リクエストを認証し、その活動の ServiceUrl を信頼されたURLのセットに追加します。

AuthenticateRequest(IActivity, String, ICredentialProvider, IChannelProvider, AuthenticationConfiguration, HttpClient)

リクエストを認証し、その活動の ServiceUrl を信頼されたURLのセットに追加します。

AuthenticateRequest(IActivity, String, ICredentialProvider, IChannelProvider, HttpClient)

リクエストを認証し、その活動の ServiceUrl を信頼されたURLのセットに追加します。

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

パラメーター

activity
IActivity

アクティビティ。

authHeader
String

認証ヘッダー。

credentials
ICredentialProvider

ボットの資格情報プロバイダー。

provider
IChannelProvider

ボットのチャネル サービス プロバイダー。

httpClient
HttpClient

HTTP クライアント。

返品

実行するキューに登録された作業を表すタスク。

注釈

タスクが成功裏に完了した場合、結果には要求のクレームに基づく識別子が記載されます。

適用対象

AuthenticateRequest(IActivity, String, ICredentialProvider, IChannelProvider, AuthenticationConfiguration, HttpClient)

リクエストを認証し、その活動の ServiceUrl を信頼されたURLのセットに追加します。

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

パラメーター

activity
IActivity

アクティビティ。

authHeader
String

認証ヘッダー。

credentials
ICredentialProvider

ボットの資格情報プロバイダー。

provider
IChannelProvider

ボットのチャネル サービス プロバイダー。

authConfig
AuthenticationConfiguration

オプションの認証構成。

httpClient
HttpClient

HTTP クライアント。

返品

実行するキューに登録された作業を表すタスク。

注釈

タスクが成功裏に完了した場合、結果には要求のクレームに基づく識別子が記載されます。

適用対象