WebAuthenticator.AuthenticateAsync 方法

定义

重载

AuthenticateAsync(WebAuthenticatorOptions)

通过导航到指定的 URL 并等待回调/重定向到 callbackUrl 方案,开始身份验证流。开始 URL 和 callbackUrl 在 webAuthenticatorOptions 中指定。

AuthenticateAsync(Uri, Uri)

通过导航到指定的 URL 并等待回调/重定向到 callbackUrl 方案,开始身份验证流。

AuthenticateAsync(WebAuthenticatorOptions)

Source:
WebAuthenticator.shared.cs
Source:
WebAuthenticator.shared.cs

通过导航到指定的 URL 并等待回调/重定向到 callbackUrl 方案,开始身份验证流。开始 URL 和 callbackUrl 在 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)

参数

webAuthenticatorOptions
WebAuthenticatorOptions

用于配置身份验证请求的选项。

返回

返回从回调 URL 分析出的结果。

适用于

AuthenticateAsync(Uri, Uri)

Source:
WebAuthenticator.shared.cs
Source:
WebAuthenticator.shared.cs

通过导航到指定的 URL 并等待回调/重定向到 callbackUrl 方案,开始身份验证流。

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)

参数

url
Uri

要导航到的 URL,开始身份验证流。

callbackUrl
Uri

导航流最终将重定向到的预期回调 URL。

返回

返回从回调 URL 分析出的结果。

适用于