Dela via


DesktopExtensions Class

Definition

MSAL extensions for desktop apps

public static class DesktopExtensions
type DesktopExtensions = class
Public Module DesktopExtensions
Inheritance
DesktopExtensions

Methods

WithDesktopFeatures(PublicClientApplicationBuilder)
Obsolete.

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

Support added is around:

WithWindowsDesktopFeatures(PublicClientApplicationBuilder, BrokerOptions)

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
WithWindowsEmbeddedBrowserSupport(PublicClientApplicationBuilder)

Adds better embedded browser support to MSAL. AAD applications will use the older WebBrowser control. Other applications (B2C, ADFS etc.) will use an embedded browser based on Microsoft Edge - https://aka.ms/msal-net-webview2

Applies to