Share via


WebAuthenticator 类

定义

用于对外部 Web 服务(如 OAuth)进行身份验证的 Web 导航 API。

public ref class WebAuthenticator abstract sealed
public static class WebAuthenticator
type WebAuthenticator = class
Public Class WebAuthenticator
继承
WebAuthenticator

注解

此 API 有助于导航到开始 URL 并等待应用的回调 URL。 必须注册应用才能处理在身份验证调用中提供的回调方案。

属性

Default

提供此 API 静态使用的默认实现。

方法

AuthenticateAsync(Uri, Uri)

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

AuthenticateAsync(WebAuthenticatorOptions)

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

适用于