AzureBotUserAuthorization.GetRefreshedUserTokenAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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>
override this.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.
- cancellationToken
- CancellationToken
Returns
The token if the exchange was successful. Otherwise returns null.