PublicClientApplicationBuilder.IsBrokerAvailable 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.
Returns true if a broker can be used.
public bool IsBrokerAvailable ();
member this.IsBrokerAvailable : unit -> bool
Public Function IsBrokerAvailable () As Boolean
Returns
- System.Boolean
Remarks
On Windows, the broker (WAM) can be used on Win10 and is always installed. See https://aka.ms/msal-net-wam On Mac, Linux and older versions of Windows a broker is not available. If your application is .NET5, please use the target .net5.0-windows10.0.17763.0 for all Windows versions and target net5.0 to target Linux and Mac. If your application is .NET classic or .NET Core 3.1 and you wish to use the Windows Broker, please install Microsoft.Identity.Client.Desktop first and call WithDesktopFeatures().
On mobile, the device must be Intune joined and Authenticator or Company Portal must be installed. See https://aka.ms/msal-brokers