Show / Hide Table of Contents

Method AuthenticateAsync

| Edit this page View Source

AuthenticateAsync(Uri, Uri)

Begin an authentication flow by navigating to the specified url and waiting for a callback/redirect to the callbackUrl scheme.

Declaration
public static Task<WebAuthenticatorResult> AuthenticateAsync(Uri authorizeUri, Uri callbackUri)
Parameters
Type Name Description
Uri authorizeUri

Url to navigate to, beginning the authentication flow.

Uri callbackUri

Expected callback url that the navigation flow will eventually redirect to.

Returns
Type Description
Task<WebAuthenticatorResult>

Returns a result parsed out from the callback url.

Remarks

Prior to calling this, a call to CheckOAuthRedirectionActivation(bool) must be made during application startup.

See Also
CheckOAuthRedirectionActivation(bool)
| Edit this page View Source

AuthenticateAsync(Uri, Uri, CancellationToken)

Begin an authentication flow by navigating to the specified url and waiting for a callback/redirect to the callbackUrl scheme.

Declaration
public static Task<WebAuthenticatorResult> AuthenticateAsync(Uri authorizeUri, Uri callbackUri, CancellationToken cancellationToken)
Parameters
Type Name Description
Uri authorizeUri

Url to navigate to, beginning the authentication flow.

Uri callbackUri

Expected callback url that the navigation flow will eventually redirect to.

CancellationToken cancellationToken

Cancellation token.

Returns
Type Description
Task<WebAuthenticatorResult>

Returns a result parsed out from the callback url.

Remarks

Prior to calling this, a call to CheckOAuthRedirectionActivation(bool) must be made during application startup.

See Also
CheckOAuthRedirectionActivation(bool)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX