TestAdapter.GetAadTokensAsync メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
GetAadTokensAsync(ITurnContext, String, String[], String, CancellationToken) |
ボットの AppCredentials を使用して、リソース URL の TokenResponses のディクショナリを返します。 |
GetAadTokensAsync(ITurnContext, AppCredentials, String, String[], String, CancellationToken) |
カスタマイズされた AppCredentials を使用して、リソース URL の TokenResponses のディクショナリを返します。 |
GetAadTokensAsync(ITurnContext, String, String[], String, CancellationToken)
ボットの AppCredentials を使用して、リソース URL の TokenResponses のディクショナリを返します。
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))
パラメーター
- context
- ITurnContext
TurnContext。
- connectionName
- String
connectionName。
- resourceUrls
- String[]
AAD リソース URL の一覧。
- userId
- String
ユーザー ID。
- cancellationToken
- CancellationToken
cancellationToken。
戻り値
各リソース URL の TokenResponses のディクショナリ。
実装
適用対象
GetAadTokensAsync(ITurnContext, AppCredentials, String, String[], String, CancellationToken)
カスタマイズされた AppCredentials を使用して、リソース URL の TokenResponses のディクショナリを返します。
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))
パラメーター
- context
- ITurnContext
TurnContext。
- oAuthAppCredentials
- AppCredentials
OAuth の AppCredentials。
- connectionName
- String
connectionName。
- resourceUrls
- String[]
AAD リソース URL の一覧。
- userId
- String
ユーザー ID。
- cancellationToken
- CancellationToken
cancellationToken。
戻り値
各リソース URL の TokenResponses のディクショナリ。