Language

WebAuthenticator Class

Definition

A web navigation API intended to be used for Authentication with external web services such as OAuth.

public ref class WebAuthenticator abstract sealed
public static class WebAuthenticator
type WebAuthenticator = class
Public Class WebAuthenticator
Inheritance
WebAuthenticator

Remarks

This API helps with navigating to a start URL and waiting for a callback URL to the app. Your app must be registered to handle the callback scheme you provide in the call to authenticate. Only one authentication operation can be active in the process. Starting another valid operation throws InvalidOperationException. Lifecycle callbacks are offered to the active built-in request first, but only a matching callback route is consumed; non-matching callbacks remain available to custom implementations and other lifecycle handlers. Scheme and host comparisons ignore case, while the effective port and any non-root path must match exactly. Query and fragment do not participate in route matching, and an expected root path does not constrain the callback path. The app remains responsible for OAuth state, PKCE, nonce validation, and token exchange.

Properties

Name Description
Default

Provides the default implementation for static usage of this API.

Methods

Name Description
AuthenticateAsync(Uri, Uri, CancellationToken)

Begin an authentication flow by navigating to the specified url and waiting for a callback/redirect to the callbackUrl scheme.

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, CancellationToken)

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(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.

Applies to