npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

mygs1-msal-angular

v2.0.2

Published

![npm (scoped)](https://img.shields.io/npm/v/@azure/msal-angular) ![npm](https://img.shields.io/npm/dw/@azure/msal-angular) [![codecov](https://codecov.io/gh/AzureAD/microsoft-authentication-library-for-js/branch/dev/graph/badge.svg?flag=msal-angular)](ht

Downloads

5

Readme

Microsoft Authentication Library for Angular

npm (scoped) npm codecov

| Getting Started| AAD Docs | Library Reference | Support | Samples | --- | --- | --- | --- | --- |

  1. About
  2. Guides
  3. FAQ
  4. Version Support
  5. Prerequisites
  6. Installation
  7. Usage
  8. Samples
  9. Build and running tests
  10. Versioning
  11. Community Help and Support
  12. Contribute
  13. Security Reporting
  14. License
  15. Code of Conduct

About

MSAL for Angular enables Angular web applications to authenticate users using Azure AD work and school accounts (AAD), Microsoft personal accounts (MSA) and social identity providers like Facebook, Google, LinkedIn, Microsoft accounts, etc. through Azure AD B2C service. It also enables your app to get tokens to access Microsoft Cloud services such as Microsoft Graph.

The @azure/msal-angular package described by the code in this folder wraps the @azure/msal-browser package and uses it as a peer dependency to enable authentication in Angular Web Applications without backend servers. This version of the library uses the OAuth 2.0 Authorization Code Flow with PKCE. To read more about this protocol, as well as the differences between implicit flow and authorization code flow, see the description provided by @azure/msal-browser. If you are looking for the version of the library that uses the implicit flow, please see the MSAL Angular v1 library.

The current @azure/msal-angular library improves upon the previous version and utilizes the authorization code flow. Most features available in the old library will be available in this one, but there are nuances to the authentication flow in both. The latest @azure/msal-angular package does NOT support the implicit flow.

Guides

Version Support

At a minimum, @azure/msal-angular will follow the support schedule of the main Angular project. We may continue to support certain versions of Angular that are not under Active or LTS support from the main Angular project on a version-by-version basis, as defined below.

| MSAL Angular version | MSAL support status | Supported Angular versions | |----------------------|-------------------------|----------------------------| | MSAL Angular v2 | Active development | 9, 10, 11, 12 | | MSAL Angular v1 | Active development | 6, 7, 8, 9 | | MSAL Angular v0 | In maintenance | 4, 5 |

Prerequisites

Before using @azure/msal-angular, register an application in Azure AD to get your clientId.

Installation

The @azure/msal-angular package is available on NPM:

npm install @azure/msal-browser @azure/msal-angular@latest

Usage

MSAL Angular Basics

  1. Initialization
  2. Public APIs
  3. Using redirects
  4. Using the MsalGuard
  5. Using the MsalInterceptor
  6. Known issues

Advanced Topics

  1. Logging
  2. CORS API
  3. Multi-Tenant
  4. Security
  5. Internet Explorer Support
  6. Events
  7. Angular Universal and SSR
  8. Performance

All documentation for MSAL Angular v1 can be found here.

Samples

MSAL Angular v1 Samples

MSAL Angular v2 Samples

See here for specific features demonstrated by our MSAL Angular v2 samples.

Advanced MSAL Angular v2 Samples

Build and running tests

If you want to build the library and run all the unit tests, you can do the following.

First navigate to the root directory of the library(msal-angular) and install the dependencies:

npm install

Then use the following command to build the library and run all the unit tests:

npm run build

npm run test

Versioning

This library controls how users sign-in and access services. We recommend you always take the latest version of our library in your app when possible. We use semantic versioning so you can control the risk associated with updating your app. As an example, always downloading the latest minor version number (e.g. x.y.x) ensures you get the latest security and feature enhanements but our API surface remains the same. You can always see the latest version and release notes under the Releases tab of GitHub.

Community Help and Support

  • Msal Browser FAQ for access to our frequently asked questions
  • Stack Overflow using tag "msal". We highly recommend you ask your questions on Stack Overflow first and browse existing issues to see if someone has asked your question before.
  • GitHub Issues for reporting a bug or feature requests
  • User Voice page to provide recommendations and/or feedback

Contribute

We enthusiastically welcome contributions and feedback. Please read the contributing guide before you begin.

Security Reporting

If you find a security issue with our libraries or services please report it to [email protected] with as much detail as possible. Your submission may be eligible for a bounty through the Microsoft Bounty program. Please do not post security issues to GitHub Issues or any other public site. We will contact you shortly upon receiving the information. We encourage you to get notifications of when security incidents occur by visiting this page and subscribing to Security Advisory Alerts.

License

Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License (the "License").

We Value and Adhere to the Microsoft Open Source Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.