語言

JwtTokenValidation.ValidateAuthHeader 方法

定義

多載

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

Bot 的認證提供者。

channelProvider
IChannelProvider

Bot 的通道服務提供者。

channelId
String

傳送要求的通道標識碼。

serviceUrl
String

活動的服務 URL。

httpClient
HttpClient

HTTP 用戶端。

傳回

工作,表示要執行的工作佇列。

備註

若任務成功完成,結果中包含請求的基於權利要求的身份。

適用於

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

Bot 的認證提供者。

channelProvider
IChannelProvider

Bot 的通道服務提供者。

channelId
String

傳送要求的通道標識碼。

authConfig
AuthenticationConfiguration

驗證組態。

serviceUrl
String

活動的服務 URL。

httpClient
HttpClient

HTTP 用戶端。

傳回

工作,表示要執行的工作佇列。

備註

若任務成功完成,結果中包含請求的基於權利要求的身份。

適用於