WebAuthenticator.AuthenticateAsync 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.
Overloads
AuthenticateAsync(WebAuthenticatorOptions) |
Begin an authentication flow by navigating to the specified url and waiting for a callback/redirect to the callbackUrl scheme.The start url and callbackUrl are specified in the webAuthenticatorOptions. |
AuthenticateAsync(Uri, Uri) |
Begin an authentication flow by navigating to the specified url and waiting for a callback/redirect to the callbackUrl scheme. |
AuthenticateAsync(WebAuthenticatorOptions)
- Source:
- WebAuthenticator.shared.cs
- Source:
- WebAuthenticator.shared.cs
Begin an authentication flow by navigating to the specified url and waiting for a callback/redirect to the callbackUrl scheme.The start url and callbackUrl are specified in the webAuthenticatorOptions.
public:
static System::Threading::Tasks::Task<Microsoft::Maui::Authentication::WebAuthenticatorResult ^> ^ AuthenticateAsync(Microsoft::Maui::Authentication::WebAuthenticatorOptions ^ webAuthenticatorOptions);
public static System.Threading.Tasks.Task<Microsoft.Maui.Authentication.WebAuthenticatorResult> AuthenticateAsync (Microsoft.Maui.Authentication.WebAuthenticatorOptions webAuthenticatorOptions);
static member AuthenticateAsync : Microsoft.Maui.Authentication.WebAuthenticatorOptions -> System.Threading.Tasks.Task<Microsoft.Maui.Authentication.WebAuthenticatorResult>
Public Shared Function AuthenticateAsync (webAuthenticatorOptions As WebAuthenticatorOptions) As Task(Of WebAuthenticatorResult)
Parameters
- webAuthenticatorOptions
- WebAuthenticatorOptions
Options to configure the authentication request.
Returns
Returns a result parsed out from the callback url.
Applies to
AuthenticateAsync(Uri, Uri)
- Source:
- WebAuthenticator.shared.cs
- Source:
- WebAuthenticator.shared.cs
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<Microsoft::Maui::Authentication::WebAuthenticatorResult ^> ^ AuthenticateAsync(Uri ^ url, Uri ^ callbackUrl);
public static System.Threading.Tasks.Task<Microsoft.Maui.Authentication.WebAuthenticatorResult> AuthenticateAsync (Uri url, Uri callbackUrl);
static member AuthenticateAsync : Uri * Uri -> System.Threading.Tasks.Task<Microsoft.Maui.Authentication.WebAuthenticatorResult>
Public Shared Function AuthenticateAsync (url As Uri, callbackUrl As Uri) As Task(Of WebAuthenticatorResult)
Parameters
- url
- Uri
Url to navigate to, beginning the authentication flow.
- callbackUrl
- Uri
Expected callback url that the navigation flow will eventually redirect to.
Returns
Returns a result parsed out from the callback url.