Share via


IUserAuthorization.GetRefreshedUserTokenAsync Method

Definition

Gets a refreshed user token.

public System.Threading.Tasks.Task<Microsoft.Agents.Core.Models.TokenResponse> GetRefreshedUserTokenAsync(Microsoft.Agents.Builder.ITurnContext turnContext, string exchangeConnection = default, System.Collections.Generic.IList<string> exchangeScopes = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetRefreshedUserTokenAsync : Microsoft.Agents.Builder.ITurnContext * string * System.Collections.Generic.IList<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Agents.Core.Models.TokenResponse>
Public Function GetRefreshedUserTokenAsync (turnContext As ITurnContext, Optional exchangeConnection As String = Nothing, Optional exchangeScopes As IList(Of String) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of TokenResponse)

Parameters

turnContext
ITurnContext

Current turn context.

exchangeConnection
String

if null, OAuthSettings are used.

exchangeScopes
IList<String>

if null, OAuthSettings are used.

cancellationToken
CancellationToken

Returns

The token if the exchange was successful. Otherwise returns null.

Applies to