Table of Contents

Class WebViewBrowser

Namespace
Auth0.OidcClient
Assembly
Auth0.OidcClient.dll

Implements the IdentityModel.OidcClient.Browser.IBrowser interface using the WebViewCompatible control.

public class WebViewBrowser : IBrowser
Inheritance
WebViewBrowser
Implements
IBrowser
Inherited Members

Constructors

WebViewBrowser(Func<Form>)

Creates a new instance of WebViewBrowser with a specified function to create the Form used to host the WebViewCompatible control.

public WebViewBrowser(Func<Form> formFactory)

Parameters

formFactory Func<Form>

The function used to create the Form that will host the WebViewCompatible control.

WebViewBrowser(string, int, int)

Creates a new instance of WebViewBrowser allowing parts of the Form container to be set.

public WebViewBrowser(string title = "Authenticating...", int width = 1024, int height = 768)

Parameters

title string

Optional title for the form - defaults to 'Authenticating...'.

width int

Optional width for the form in pixels. Defaults to 1024.

height int

Optional height for the form in pixels. Defaults to 768.

Methods

InvokeAsync(BrowserOptions, CancellationToken)

public Task<BrowserResult> InvokeAsync(BrowserOptions options, CancellationToken cancellationToken = default)

Parameters

options BrowserOptions
cancellationToken CancellationToken

Returns

Task<BrowserResult>