BotFrameworkAuthentication.CreateUserTokenClientAsync 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.
Creates the appropriate UserTokenClient instance.
public abstract System.Threading.Tasks.Task<Microsoft.Bot.Connector.Authentication.UserTokenClient> CreateUserTokenClientAsync (System.Security.Claims.ClaimsIdentity claimsIdentity, System.Threading.CancellationToken cancellationToken);
abstract member CreateUserTokenClientAsync : System.Security.Claims.ClaimsIdentity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Connector.Authentication.UserTokenClient>
Public MustOverride Function CreateUserTokenClientAsync (claimsIdentity As ClaimsIdentity, cancellationToken As CancellationToken) As Task(Of UserTokenClient)
Parameters
- claimsIdentity
- ClaimsIdentity
The inbound Activity's ClaimsIdentity.
- cancellationToken
- CancellationToken
A cancellation token.
Returns
Asynchronous Task with UserTokenClient instance.