SkillValidation.AuthenticateChannelToken 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
들어오는 인증 헤더가 봇에서 기술로 또는 기술에서 봇으로 전송된 토큰인지 확인합니다.
public static System.Threading.Tasks.Task<System.Security.Claims.ClaimsIdentity> AuthenticateChannelToken(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 AuthenticateChannelToken : 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 AuthenticateChannelToken (authHeader As String, credentials As ICredentialProvider, channelProvider As IChannelProvider, httpClient As HttpClient, channelId As String, authConfig As AuthenticationConfiguration) As Task(Of ClaimsIdentity)
매개 변수
- authHeader
- String
"Bearer [longString]" 형식의 원시 HTTP 헤더입니다.
- credentials
- ICredentialProvider
AppId와 같은 유효한 자격 증명의 사용자 정의 집합입니다.
- channelProvider
- IChannelProvider
공용 Azure와 미국 정부 Azure를 구분하는 channelService 값입니다.
- httpClient
- HttpClient
토큰 인증을 사용하려면 호출을 통해 인증 및 관련 문서의 유효성을 검사해야 합니다. HttpClient는 이러한 호출을 수행하는 데 사용됩니다. 이러한 호출에는 일반적으로 설정 및 해체에 비용이 많이 드는 TLS 연결이 필요하므로 공유 HttpClient를 사용하는 것이 좋습니다.
- channelId
- String
유효성을 검사할 채널의 ID입니다.
- authConfig
- AuthenticationConfiguration
인증 구성입니다.
반환
ClaimsIdentity 유효성 검사에 성공하면 인스턴스입니다.