語言

BotFrameworkAuthentication.AuthenticateChannelRequestAsync 方法

定義

將機器人框架協議請求驗證給技能。

public virtual System.Threading.Tasks.Task<System.Security.Claims.ClaimsIdentity> AuthenticateChannelRequestAsync(string authHeader, System.Threading.CancellationToken cancellationToken);
abstract member AuthenticateChannelRequestAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Security.Claims.ClaimsIdentity>
override this.AuthenticateChannelRequestAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Security.Claims.ClaimsIdentity>
Public Overridable Function AuthenticateChannelRequestAsync (authHeader As String, cancellationToken As CancellationToken) As Task(Of ClaimsIdentity)

參數

authHeader
String

技能要求中收到的 HTTP 驗證標頭。

cancellationToken
CancellationToken

取消令牌。

傳回

非同步任務 。ClaimsIdentity

適用於