Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

AcquireTokenInteractiveParameterBuilder.WithUseEmbeddedWebView Method

Definition

Namespace:
Microsoft.Identity.Client
Assembly:
Microsoft.Identity.Client.dll
Package:
Microsoft.Identity.Client v4.83.3

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

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


Feedback

Was this page helpful?