Freigeben über


AcquireTokenInteractiveParameterBuilder.WithUseEmbeddedWebView Method

Definition

Specifies if the public client application should used an embedded web browser or the system default browser. If the broker (WAM, Authenticator, Company Portal) is configured, this setting is only used when the broker is not installed.

On .NET, including net8-windows, app developers must reference Microsoft.Identity.Client.Desktop and call PublicClientApplicationBuilder.WithDesktopFeatures() to enable the embedded web browser.

public Microsoft.Identity.Client.AcquireTokenInteractiveParameterBuilder WithUseEmbeddedWebView (bool useEmbeddedWebView);
member this.WithUseEmbeddedWebView : bool -> Microsoft.Identity.Client.AcquireTokenInteractiveParameterBuilder
Public Function WithUseEmbeddedWebView (useEmbeddedWebView As Boolean) As AcquireTokenInteractiveParameterBuilder

Parameters

useEmbeddedWebView
Boolean

If true, will use an embedded web browser, otherwise will attempt to use a system web browser. The default depends on the platform: false for iOS and Android, and true for .NET Framework

Returns

The builder to chain the .With methods

Applies to