Udostępnij za pośrednictwem


SystemWebViewOptions Class

Definition

Options for using the default OS browser as a separate process to handle interactive auth. MSAL will be listening for the OS browser to finish authenticating, but it cannot close the browser. It can however respond with a 200 OK message or a 302 Redirect, which can be configured here. For more details see https://aka.ms/msal-net-os-browser

public class SystemWebViewOptions
type SystemWebViewOptions = class
Public Class SystemWebViewOptions
Inheritance
SystemWebViewOptions

Constructors

SystemWebViewOptions()

Constructor

Properties

BrowserRedirectError

When the user finishes authenticating, but an error occurred, MSAL will redirect the browser to the given Uri

BrowserRedirectSuccess

When the user finishes authenticating, MSAL will redirect the browser to the given Uri

HtmlMessageError

When the user finishes authenticating, but an error occurred, MSAL will respond with a 200 OK message, which the browser will show to the user. You can use a string format e.g. "An error has occurred: {0} details: {1}"

HtmlMessageSuccess

When the user finishes authenticating, MSAL will respond with a 200 OK message, which the browser will show to the user.

iOSHidePrivacyPrompt

This hides the privacy prompt displayed on iOS Devices (ver 13.0+) when set to true. By default, it is false and displays the prompt.

OpenBrowserAsync

Allows developers to implement their own logic for starting a browser and navigating to a specific Uri. MSAL will use this when opening the browser. Leave it null and the user configured browser will be used. Consider using the static helpers OpenWithEdgeBrowserAsync and OpenWithChromeEdgeBrowserAsync

Methods

OpenWithChromeEdgeBrowserAsync(Uri)

Use Microsoft Edge Chromium to navigate to the given URI. Requires the browser to be installed. On Linux, open edge if available otherwise open the default browser.

OpenWithEdgeBrowserAsync(Uri)

Use Microsoft Edge to navigate to the given URI. On non-windows platforms it uses whatever browser is the default.

Applies to