WebAuthenticator.AuthenticateAsync(Uri, Uri) 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.
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.