WebAuthenticator.AuthenticateAsync(Uri, Uri) Method

Definition

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

public static System.Threading.Tasks.Task<Xamarin.Essentials.WebAuthenticatorResult> AuthenticateAsync (Uri url, Uri callbackUrl);

Parameters

url
System.Uri

Url to navigate to, beginning the authentication flow.

callbackUrl
System.Uri

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

Returns

System.Threading.Tasks.Task<WebAuthenticatorResult>

Returns a result parsed out from the callback url.

Exceptions

TaskCanceledException

The user canceled the authentication flow.

Applies to