EmulatorValidation.AuthenticateEmulatorToken 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오버로드
AuthenticateEmulatorToken(String, ICredentialProvider, IChannelProvider, HttpClient, String) |
들어오는 Auth 헤더를 Bot Framework Emulator 보낸 토큰으로 유효성을 검사합니다. |
AuthenticateEmulatorToken(String, ICredentialProvider, IChannelProvider, HttpClient, String, AuthenticationConfiguration) |
들어오는 Auth 헤더를 Bot Framework Emulator 보낸 토큰으로 유효성을 검사합니다. |
AuthenticateEmulatorToken(String, ICredentialProvider, IChannelProvider, HttpClient, String)
들어오는 Auth 헤더를 Bot Framework Emulator 보낸 토큰으로 유효성을 검사합니다.
public static System.Threading.Tasks.Task<System.Security.Claims.ClaimsIdentity> AuthenticateEmulatorToken (string authHeader, Microsoft.Bot.Connector.Authentication.ICredentialProvider credentials, Microsoft.Bot.Connector.Authentication.IChannelProvider channelProvider, System.Net.Http.HttpClient httpClient, string channelId);
static member AuthenticateEmulatorToken : string * Microsoft.Bot.Connector.Authentication.ICredentialProvider * Microsoft.Bot.Connector.Authentication.IChannelProvider * System.Net.Http.HttpClient * string -> System.Threading.Tasks.Task<System.Security.Claims.ClaimsIdentity>
Public Shared Function AuthenticateEmulatorToken (authHeader As String, credentials As ICredentialProvider, channelProvider As IChannelProvider, httpClient As HttpClient, channelId As String) 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입니다.
반환
유효한 ClaimsIdentity입니다.
설명
Bot Framework에서 발급한 토큰은 이 검사에 실패합니다. 에뮬레이터 토큰만 전달됩니다.
적용 대상
AuthenticateEmulatorToken(String, ICredentialProvider, IChannelProvider, HttpClient, String, AuthenticationConfiguration)
들어오는 Auth 헤더를 Bot Framework Emulator 보낸 토큰으로 유효성을 검사합니다.
public static System.Threading.Tasks.Task<System.Security.Claims.ClaimsIdentity> AuthenticateEmulatorToken (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 AuthenticateEmulatorToken : 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 AuthenticateEmulatorToken (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입니다.
설명
Bot Framework에서 발급한 토큰은 이 검사에 실패합니다. 에뮬레이터 토큰만 전달됩니다.