IWebAuthenticator.AuthenticateAsync(WebAuthenticatorOptions) 方法

定义

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

public:
 System::Threading::Tasks::Task<Microsoft::Maui::Authentication::WebAuthenticatorResult ^> ^ AuthenticateAsync(Microsoft::Maui::Authentication::WebAuthenticatorOptions ^ webAuthenticatorOptions);
public System.Threading.Tasks.Task<Microsoft.Maui.Authentication.WebAuthenticatorResult> AuthenticateAsync (Microsoft.Maui.Authentication.WebAuthenticatorOptions webAuthenticatorOptions);
abstract member AuthenticateAsync : Microsoft.Maui.Authentication.WebAuthenticatorOptions -> System.Threading.Tasks.Task<Microsoft.Maui.Authentication.WebAuthenticatorResult>
Public Function AuthenticateAsync (webAuthenticatorOptions As WebAuthenticatorOptions) As Task(Of WebAuthenticatorResult)

参数

webAuthenticatorOptions
WebAuthenticatorOptions

包含 WebAuthenticatorOptions 此身份验证调用的其他配置的实例。

返回

包含 WebAuthenticatorResult 此操作结果的 对象。

适用于