Share via


IUserTokenProvider.GetTokenStatusAsync Method

Definition

Retrieves the token status for each configured connection for the given user, using the bot's AppCredentials.

public System.Threading.Tasks.Task<Microsoft.Bot.Schema.TokenStatus[]> GetTokenStatusAsync (Microsoft.Bot.Builder.ITurnContext context, string userId, string includeFilter = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetTokenStatusAsync : Microsoft.Bot.Builder.ITurnContext * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.TokenStatus[]>
Public Function GetTokenStatusAsync (context As ITurnContext, userId As String, Optional includeFilter As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TokenStatus())

Parameters

context
ITurnContext

Context for the current turn of conversation with the user.

userId
String

The user Id for which token status is retrieved.

includeFilter
String

Optional comma separated list of connection's to include. Blank will return token status for all configured connections.

cancellationToken
CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

Array of TokenStatus.

Applies to