Before you start here, make sure you understand how to initialize the application object.
The login APIs in MSAL retrieve an authorization code
which can be exchanged for an ID token for a signed in user, while consenting scopes for an additional resource, and an access token containing the user consented scopes to allow your app to securely call the API.
You can read more about ID tokens on our Azure Docs pages.
@azure/msal-angular
exposes the following, along with their configurations. See the library references for properties and methods.
The login and acquire token functions using Angular observables are found on the IMsalService.
@azure/msal-angular
also exposes the following:
MsalRedirectComponent
: Used for handling redirects. See the redirect doc for more details.MsalCustomNavigationClient
: Used for client-side navigation. See the performance doc for more details.
Additional functions from @azure/msal-browser
are found on IPublicClientApplication
, with corresponding documentation here.