Skip to main content

WebAuthenticationBroker Class

Definition

Assembly:Avalonia.Controls.WebView
Package:Avalonia.Controls.WebView

Avalonia.Controls.WebAuthenticationBroker is a utility class that facilitates OAuth and other web-based authentication flows by providing a secure way to handle web authentication in applications.

public class WebAuthenticationBroker

Inheritance: object -> WebAuthenticationBroker

Methods

NameDescription
AuthenticateAsyncStarts an authentication flow by navigating to the specified start URI and monitoring for navigation to the end URI.

AuthenticateAsync Method

Starts an authentication flow by navigating to the specified start URI and monitoring for navigation to the end URI.

public System.Threading.Tasks.Task<Avalonia.Controls.WebAuthenticationResult> AuthenticateAsync(Avalonia.Controls.TopLevel topLevel, Avalonia.Controls.WebAuthenticatorOptions options)

Parameters

topLevel Avalonia.Controls.TopLevel

options Avalonia.Controls.WebAuthenticatorOptions

Returns

System.Threading.Tasks.Task<Avalonia.Controls.WebAuthenticationResult>

Exceptions