Skip to content

Demonstrate authenticating Angular apps with Azure Active Directory using MSAL Angular.

License

Notifications You must be signed in to change notification settings

khandelwal-arpit/angular-azure-auth

Repository files navigation


MSAL

Angular MSAL Based Authentication

This project was generated with Angular CLI version 10.2.0. The objective of this project is to demonstrate authenticating Angular apps with Azure Active Directory using MSAL Angular 1.0.

MSAL library

Microsoft released Version 1.0 of its Library for Angular that facilitates the implementation of OAuth 2.0 token based authentication into Azure Active Directory. The library was released on May 3rd 2020 ending a long phase of workarounds and beta versions of the Angular variant of the MSAL library for Single Page Applications (SPA).

Prerequisites

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.

Build

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.

Environment Configurations

Replace the following in the environment.ts config with your application specific values:

Configure a new app registration in Azure AD

Azure AD App Registrations

Configure Redirect URI

Configure SPA

Client Id & Tenant Id

Application Screenshots

Launch Page

Login Page

Password Page

Profile Page

About

Demonstrate authenticating Angular apps with Azure Active Directory using MSAL Angular.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published