Microsoft.Identity.Client.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).
Returns true if MSAL can use a system browser.
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