Share via


UserTokenClient.CreateTokenExchangeState(String, String, Activity) Method

Definition

Helper function to create the base64 encoded token exchange state used in GetSignInResourceAsync calls.

protected static string CreateTokenExchangeState (string appId, string connectionName, Microsoft.Bot.Schema.Activity activity);
static member CreateTokenExchangeState : string * string * Microsoft.Bot.Schema.Activity -> string
Protected Shared Function CreateTokenExchangeState (appId As String, connectionName As String, activity As Activity) As String

Parameters

appId
String

The appId to include in the token exchange state.

connectionName
String

The connectionName to include in the token exchange state.

activity
Activity

The Activity from which to derive the token exchange state.

Returns

base64 encoded token exchange state.

Applies to