OpenBrowserAction Interface

public interface OpenBrowserAction

Interface to be implemented to override system browser initialization logic. Otherwise, PublicClientApplication defaults to using default system browser

Method Summary

Modifier and Type Method and Description
abstract void openBrowser(URL url)

Override for providing custom browser initialization logic.

Method Details

openBrowser

public abstract void openBrowser(URL url)

Override for providing custom browser initialization logic. Method that is called by MSAL when doing acquireToken(InteractiveRequestParameters parameters). If not overridden, MSAL will attempt to open URL in default system browser.

Parameters:

url - URL to the /authorize endpoint which should opened up in a browser so the user can provide their credentials and consent to scopes.

Applies to