<PackageReference Include="Microsoft.Identity.Client" Version="4.83.0" />

Microsoft.Identity.Client.OsCapabilitiesExtensions

public static class OsCapabilitiesExtensions
Extension methods
public static X509Certificate2 GetCertificate(this IConfidentialClientApplication confidentialClientApplication)

Returns the certificate used to create this ConfidentialClientApplication, if any.

public static bool IsEmbeddedWebViewAvailable(this IPublicClientApplication publicClientApplication)

Returns true if MSAL can use an embedded webview (browser).

public static bool IsSystemWebViewAvailable(this IPublicClientApplication publicClientApplication)

Returns true if MSAL can use a system browser.

public static bool IsUserInteractive(this IPublicClientApplication publicClientApplication)

Returns false when the program runs in headless OS, for example when SSH-ed into a Linux machine. Browsers (webviews) and brokers cannot be used if there is no UI support. Instead, please use AcquireTokenWithDeviceCode or AcquireTokenByIntegratedWindowsAuth