DesktopExtensions.WithDesktopFeatures(PublicClientApplicationBuilder) Method
Definition
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.
Caution
Use WithWindowsDesktopFeatures instead. For broker support only, use WithBroker(BrokerOptions) from Microsoft.Identity.Client.Broker package.
Adds enhanced support for desktop applications, e.g. CLI, WinForms, WPF apps.
Support added is around:
- Windows Authentication Manager (WAM) broker, the recommended authentication mechanism on Windows 10 - https://aka.ms/msal-net-wam
- WebView2 embedded web view, based on Microsoft Edge - https://aka.ms/msal-net-webview2
[System.Obsolete("Use WithWindowsDesktopFeatures instead. For broker support only, use WithBroker(BrokerOptions) from Microsoft.Identity.Client.Broker package.", false)]
public static Microsoft.Identity.Client.PublicClientApplicationBuilder WithDesktopFeatures (this Microsoft.Identity.Client.PublicClientApplicationBuilder builder);
[<System.Obsolete("Use WithWindowsDesktopFeatures instead. For broker support only, use WithBroker(BrokerOptions) from Microsoft.Identity.Client.Broker package.", false)>]
static member WithDesktopFeatures : Microsoft.Identity.Client.PublicClientApplicationBuilder -> Microsoft.Identity.Client.PublicClientApplicationBuilder
<Extension()>
Public Function WithDesktopFeatures (builder As PublicClientApplicationBuilder) As PublicClientApplicationBuilder
Parameters
- builder
- PublicClientApplicationBuilder
Returns
- Attributes
Remarks
These extensions live in a separate package to avoid adding dependencies to MSAL