First, please read about how to initialize the PublicClientApplication
object, login and acquire tokens.
The MSAL Browser library has a set of configuration options that can be used to customize the behavior of your authentication flows. Some of these options can be set in the constructor of the PublicClientApplication
object, and most of them can be set on a per-request basis. The table below details the configuration objects that can be passed to the login and acquireToken APIs, and the objects returned representing the response.
API | Request Object | Response Object |
---|---|---|
acquireTokenPopup |
PopupRequest | AuthenticationResult |
acquireTokenRedirect |
RedirectRequest | AuthenticationResult (via handleRedirectPromise ) |
acquireTokenSilent |
SilentRequest | AuthenticationResult |
loginPopup |
PopupRequest | AuthenticationResult |
loginRedirect |
RedirectRequest | AuthenticationResult (via handleRedirectPromise ) |
logoutRedirect |
EndSessionRequest | void |
logoutPopup |
EndSessionPopupRequest | void |
ssoSilent |
SsoSilentRequest | AuthenticationResult |