次の方法で共有


JwtTokenValidation.ValidateAuthHeader メソッド

定義

オーバーロード

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

受信要求の認証ヘッダーを検証します。

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

受信要求の認証ヘッダーを検証します。

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

受信要求の認証ヘッダーを検証します。

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)

パラメーター

authHeader
String

検証する認証ヘッダー。

credentials
ICredentialProvider

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

channelProvider
IChannelProvider

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

channelId
String

要求を送信したチャネルの ID。

serviceUrl
String

アクティビティのサービス URL。

httpClient
HttpClient

HTTP クライアント。

戻り値

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

注釈

タスクが正常に完了すると、要求のクレーム ベースの ID が結果に含まれます。

適用対象

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

受信要求の認証ヘッダーを検証します。

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)

パラメーター

authHeader
String

検証する認証ヘッダー。

credentials
ICredentialProvider

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

channelProvider
IChannelProvider

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

channelId
String

要求を送信したチャネルの ID。

authConfig
AuthenticationConfiguration

認証の構成。

serviceUrl
String

アクティビティのサービス URL。

httpClient
HttpClient

HTTP クライアント。

戻り値

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

注釈

タスクが正常に完了すると、要求のクレーム ベースの ID が結果に含まれます。

適用対象