Compartilhar via


TestAdapter.GetAadTokensAsync Método

Definição

Sobrecargas

GetAadTokensAsync(ITurnContext, String, String[], String, CancellationToken)

Retorna um dicionário de TokenResponses para as URLs de recurso, usando AppCredentials do bot.

GetAadTokensAsync(ITurnContext, AppCredentials, String, String[], String, CancellationToken)

Retorna um dicionário de TokenResponses para as URLs de recurso, usando AppCredentials personalizado.

GetAadTokensAsync(ITurnContext, String, String[], String, CancellationToken)

Retorna um dicionário de TokenResponses para as URLs de recurso, usando AppCredentials do bot.

public virtual System.Threading.Tasks.Task<System.Collections.Generic.Dictionary<string,Microsoft.Bot.Schema.TokenResponse>> GetAadTokensAsync (Microsoft.Bot.Builder.ITurnContext context, string connectionName, string[] resourceUrls, string userId = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAadTokensAsync : Microsoft.Bot.Builder.ITurnContext * string * string[] * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.Dictionary<string, Microsoft.Bot.Schema.TokenResponse>>
override this.GetAadTokensAsync : Microsoft.Bot.Builder.ITurnContext * string * string[] * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.Dictionary<string, Microsoft.Bot.Schema.TokenResponse>>
Public Overridable Function GetAadTokensAsync (context As ITurnContext, connectionName As String, resourceUrls As String(), Optional userId As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Dictionary(Of String, TokenResponse))

Parâmetros

context
ITurnContext

O TurnContext.

connectionName
String

O connectionName.

resourceUrls
String[]

A lista de URLs de recursos do AAD.

userId
String

A ID do usuário.

cancellationToken
CancellationToken

O cancellationToken.

Retornos

O dicionário de TokenResponses para cada URL de recurso.

Implementações

Aplica-se a

GetAadTokensAsync(ITurnContext, AppCredentials, String, String[], String, CancellationToken)

Retorna um dicionário de TokenResponses para as URLs de recurso, usando AppCredentials personalizado.

public virtual 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>>
override this.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 Overridable 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))

Parâmetros

context
ITurnContext

O TurnContext.

oAuthAppCredentials
AppCredentials

AppCredentials para OAuth.

connectionName
String

O connectionName.

resourceUrls
String[]

A lista de URLs de recursos do AAD.

userId
String

A ID do usuário.

cancellationToken
CancellationToken

O cancellationToken.

Retornos

O dicionário de TokenResponses para cada URL de recurso.

Implementações

Aplica-se a