Note

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

Access to this page requires authorization. You can try .

DesktopExtensions.WithWindowsDesktopFeatures Method

Definition

Namespace:
Microsoft.Identity.Client.Desktop
Assembly:
Microsoft.Identity.Client.Desktop.dll
Package:
Microsoft.Identity.Client.Desktop 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.

Adds enhanced support for desktop applications, e.g. CLI, WinForms, WPF apps.

  • Windows Authentication Manager (WAM) broker, the recommended authentication mechanism on Windows 10+ - https://aka.ms/msal-net-wam
  • Embedded web view. AAD applications use the older WebBrowser control. Other applications (B2C, ADFS etc.) use WebView2, an embedded browser based on Microsoft Edge - https://aka.ms/msal-net-webview2
public static Microsoft.Identity.Client.PublicClientApplicationBuilder WithWindowsDesktopFeatures(this Microsoft.Identity.Client.PublicClientApplicationBuilder builder, Microsoft.Identity.Client.BrokerOptions brokerOptions);
static member WithWindowsDesktopFeatures : Microsoft.Identity.Client.PublicClientApplicationBuilder * Microsoft.Identity.Client.BrokerOptions -> Microsoft.Identity.Client.PublicClientApplicationBuilder
<Extension()>
Public Function WithWindowsDesktopFeatures (builder As PublicClientApplicationBuilder, brokerOptions As BrokerOptions) As PublicClientApplicationBuilder

Parameters

brokerOptions
BrokerOptions

Returns

Remarks

This is not required for MAUI / WinUI applications

Applies to


Feedback

Was this page helpful?