Skip to content

MSAL Basics

Doğan Erişen edited this page May 6, 2020 · 2 revisions

Scenario overview

Please see the Single page application scenario to understand the scenarios in which MSAL.js can be used and the basics required for integration of MSAL.js.

Prerequisite: App registration

Before using MSAL.js, register your application in Azure portal to get your Client Id (aka App Id). You need to have an Azure AD tenant set up already for doing this. After that, you can follow the steps to register a SPA on the app registration steps.


Please refer to Installation.

Initialization of MSAL

Please follow initializing client applications using MSAL.js to learn how to instantiate and configure the MSAL authentication context in a JavaScript application.

Learn more about sign-in audience types and validation differences between them.

users, acquire tokens and call Web APIs

Please read about the patterns to sign-in with MSAL.js, acquire tokens to call web APIs and call web APIs with tokens.

Follow samples

To see MSAL.js in action, please refer to Samples.