다음을 통해 공유


OAuthClientOld.GetUserTokenAsync 메서드

정의

지정된 사용자 및 연결에 대한 사용자 토큰을 가져옵니다.

public System.Threading.Tasks.Task<Microsoft.Bot.Schema.TokenResponse> GetUserTokenAsync (string userId, string connectionName, string magicCode, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
member this.GetUserTokenAsync : string * string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.TokenResponse>
Public Function GetUserTokenAsync (userId As String, connectionName As String, magicCode As String, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TokenResponse)

매개 변수

userId
String

사용자의 ID입니다.

connectionName
String

사용할 인증 연결의 이름입니다.

magicCode
String

사용자가 유효성을 검사하기 위해 코드를 입력했습니다.

customHeaders
Dictionary<String,List<String>>

customHeaders.

cancellationToken
CancellationToken

취소의 통지를 받기 위해 다른 개체나 스레드에서 사용할 수 있는 취소 토큰입니다.

반환

실행할 대기 중인 작업을 나타내는 작업입니다.

설명

작업이 성공적으로 완료되면 에는 TokenResponse 사용자 토큰이 포함됩니다.

적용 대상