IExtendedUserTokenProvider.GetAadTokensAsync 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
사용자 지정된 AppCredentials를 사용하여 구성된 연결에서 특정 리소스에 대한 Azure Active Directory 토큰을 검색합니다.
public System.Threading.Tasks.Task<System.Collections.Generic.Dictionary<string,Microsoft.Bot.Schema.TokenResponse>> GetAadTokensAsync(Microsoft.Bot.Builder.ITurnContext context, Microsoft.Bot.Connector.Authentication.AppCredentials oAuthAppCredentials, string connectionName, string[] resourceUrls, string userId = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAadTokensAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Connector.Authentication.AppCredentials * string * string[] * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.Dictionary<string, Microsoft.Bot.Schema.TokenResponse>>
Public Function GetAadTokensAsync (context As ITurnContext, oAuthAppCredentials As AppCredentials, connectionName As String, resourceUrls As String(), Optional userId As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Dictionary(Of String, TokenResponse))
매개 변수
- context
- ITurnContext
사용자와의 현재 대화 전환에 대한 컨텍스트입니다.
- oAuthAppCredentials
- AppCredentials
OAuth용 AppCredentials입니다.
- connectionName
- String
이 봇으로 구성된 Azure Active Directory 연결의 이름입니다.
- resourceUrls
- String[]
토큰을 검색할 리소스 URL 목록입니다.
- userId
- String
토큰을 검색할 사용자 ID입니다. null을 전달하면 userId가 ITurnContext의 작업에서 가져옵니다.
- cancellationToken
- CancellationToken
취소의 통지를 받기 위해 다른 개체나 스레드에서 사용할 수 있는 취소 토큰입니다.
반환
해당 TokenResponse에 대한 resourceUrl 사전입니다.