Udostępnij przez


IUserTokenClient.GetSignInResourceAsync Method

Definition

Get the raw signin link to be sent to the user for signin for a connection name.

public System.Threading.Tasks.Task<Microsoft.Agents.Core.Models.SignInResource> GetSignInResourceAsync(string connectionName, Microsoft.Agents.Core.Models.IActivity activity, string finalRedirect, System.Threading.CancellationToken cancellationToken);
abstract member GetSignInResourceAsync : string * Microsoft.Agents.Core.Models.IActivity * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Agents.Core.Models.SignInResource>
Public Function GetSignInResourceAsync (connectionName As String, activity As IActivity, finalRedirect As String, cancellationToken As CancellationToken) As Task(Of SignInResource)

Parameters

connectionName
String

Name of the auth connection to use.

activity
IActivity

The Activity from which to derive the token exchange state.

finalRedirect
String

The final URL that the OAuth flow will redirect to.

cancellationToken
CancellationToken

Cancellation token.

Returns

A Task<TResult> representing the result of the asynchronous operation.

Applies to