Skip to content
Switch branches/tags

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time


This project was generated with Angular CLI version 7.3.8.

This project is based on the MSAL example projects which are available here. The MSAL-Angular documentation is very helpful as well for anyone getting started and can be found here.

Get Started

Use the following instructions to clone and experiment with this project

  1. Begin by cloning the git repository to your development machine git clone
  2. Run npm install in the folder where the repository was cloned
  3. Register your application with Azure AD using these instructions
  4. Grant this application and permissions
  5. Update the Msaldemocfg.ts file to include your clientID and Tenant Name with your application registration information
export const MSALDemoCfg = {
  // This comes from your Azure AD Application registration settings authority
  // This can by your * tenant name
  authority: "[YOUR TENANT NAME HERE]" 
  1. Run ng serve to begin your application and browse to http://localhost:4200/

Known Issue

  1. After login the AAD List Link and Welcome {username} values do not show so the user must refresh the browser

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.


Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

E2E is not currently enabled in this project.

Run ng e2e to execute the end-to-end tests via Protractor.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

v: 0.1


This is a demo of how to use MSAL with TypeScript Angular to login and query Azure AD



No releases published


No packages published