This developer sample is used to demonstrate how to use MSAL-Angular v2.
This project was generated with Angular CLI version 11.0.1.
- Ensure all pre-requisites have been completed to run msal-angular.
- Open
./src/app/app.modules.ts
in an editor. - Replace client id with the Application (client) ID from the portal registration, or use the currently configured lab registration.
- Optionally, you may replace any of the other parameters, or you can remove them and use the default values.
- In a command prompt, run
npm start
. - Navigate to http://localhost:4200
- In the web page, click on the "Login" button. The app will automatically reload if you change any of the source files.
- The default interaction type for the sample is redirect. The sample can be configured to use popups by changing the
interactionType
inapp.module.ts
toInteractionType.Popup
.