TestAdapter.GetAadTokensAsync Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Überlädt
| Name | Beschreibung |
|---|---|
| GetAadTokensAsync(ITurnContext, String, String[], String, CancellationToken) |
Gibt ein Wörterbuch von TokenResponses für die Ressourcen-URLs zurück, wobei die AppCredentials des Bots verwendet werden. |
| GetAadTokensAsync(ITurnContext, AppCredentials, String, String[], String, CancellationToken) |
Gibt ein Wörterbuch von TokenResponses für die Ressourcen-URLs zurück, wobei angepasste AppCredentials verwendet werden. |
GetAadTokensAsync(ITurnContext, String, String[], String, CancellationToken)
Gibt ein Wörterbuch von TokenResponses für die Ressourcen-URLs zurück, wobei die AppCredentials des Bots verwendet werden.
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))
Parameter
- context
- ITurnContext
Der TurnContext.
- connectionName
- String
Der connectionName.
- resourceUrls
- String[]
Die Liste der AAD-Ressourcen-URLs.
- userId
- String
Die Benutzer-ID.
- cancellationToken
- CancellationToken
Der CancellationToken.
Gibt zurück
Das Wörterbuch der TokenResponses für jede Ressourcen-URL.
Implementiert
Gilt für:
GetAadTokensAsync(ITurnContext, AppCredentials, String, String[], String, CancellationToken)
Gibt ein Wörterbuch von TokenResponses für die Ressourcen-URLs zurück, wobei angepasste AppCredentials verwendet werden.
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))
Parameter
- context
- ITurnContext
Der TurnContext.
- oAuthAppCredentials
- AppCredentials
AppCredentials für OAuth.
- connectionName
- String
Der connectionName.
- resourceUrls
- String[]
Die Liste der AAD-Ressourcen-URLs.
- userId
- String
Die Benutzer-ID.
- cancellationToken
- CancellationToken
Der CancellationToken.
Gibt zurück
Das Wörterbuch der TokenResponses für jede Ressourcen-URL.