Jaa


IExtendedUserTokenProvider.GetTokenStatusAsync Method

Definition

Retrieves the token status for each configured connection for the given user, using customized AppCredentials.

public System.Threading.Tasks.Task<Microsoft.Bot.Schema.TokenStatus[]> GetTokenStatusAsync (Microsoft.Bot.Builder.ITurnContext context, Microsoft.Bot.Connector.Authentication.AppCredentials oAuthAppCredentials, string userId, string includeFilter = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetTokenStatusAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Connector.Authentication.AppCredentials * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.TokenStatus[]>
Public Function GetTokenStatusAsync (context As ITurnContext, oAuthAppCredentials As AppCredentials, 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.

oAuthAppCredentials
AppCredentials

AppCredentials for OAuth.

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