Delen via


BotFrameworkAdapter.GetAadTokensAsync Methode

Definitie

Overloads

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

Haalt Azure Active Directory-tokens op voor bepaalde resources in een geconfigureerde verbinding, met behulp van de AppCredentials van de bot.

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

Haalt Azure Active Directory-tokens op voor bepaalde resources op een geconfigureerde verbinding, met behulp van aangepaste AppCredentials.

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

Haalt Azure Active Directory-tokens op voor bepaalde resources in een geconfigureerde verbinding, met behulp van de AppCredentials van de 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))

Parameters

context
ITurnContext

Context voor de huidige wending van het gesprek met de gebruiker.

connectionName
String

De naam van de Azure Active Directory-verbinding die is geconfigureerd met deze bot.

resourceUrls
String[]

De lijst met resource-URL's waarvoor tokens moeten worden opgehaald.

userId
String

De gebruikers-id waarvoor tokens worden opgehaald. Als null wordt doorgegeven, wordt de userId overgenomen uit de activiteit in de ITurnContext.

cancellationToken
CancellationToken

Het annuleringstoken voor asynchrone bewerking.

Retouren

Woordenlijst van resourceUrl naar de bijbehorende TokenResponse.

Implementeringen

Van toepassing op

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

Haalt Azure Active Directory-tokens op voor bepaalde resources op een geconfigureerde verbinding, met behulp van aangepaste AppCredentials.

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))

Parameters

context
ITurnContext

Context voor de huidige wending van het gesprek met de gebruiker.

oAuthAppCredentials
AppCredentials

AppCredentials voor OAuth.

connectionName
String

De naam van de Azure Active Directory-verbinding die is geconfigureerd met deze bot.

resourceUrls
String[]

De lijst met resource-URL's waarvoor tokens moeten worden opgehaald.

userId
String

De gebruikers-id waarvoor tokens worden opgehaald. Als null wordt doorgegeven, wordt de userId overgenomen uit de activiteit in de ITurnContext.

cancellationToken
CancellationToken

Het annuleringstoken voor asynchrone bewerking.

Retouren

Woordenlijst van resourceUrl naar de bijbehorende TokenResponse.

Implementeringen

Van toepassing op