WebAuthenticator.AuthenticateAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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 分析出的结果。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈