- Notifications
You must be signed in to change notification settings - Fork2.7k
Microsoft Authentication Library (MSAL) for JS
License
AzureAD/microsoft-authentication-library-for-js
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
The Microsoft Authentication Library for JavaScript enables both client-side and server-side JavaScript applications to authenticate users usingAzure AD for work and school accounts (AAD), Microsoft personal accounts (MSA), and social identity providers like Facebook, Google, LinkedIn, Microsoft accounts, etc. throughAzure AD B2C service. It also enables your app to get tokens to accessMicrosoft Cloud services such asMicrosoft Graph.
Thelib
folder contains the source code for our libraries in active development. You will also find all the details aboutinstalling the libraries in their respective README.md.
Microsoft Authentication Library for Node.js: ANode.js library that enables authentication and token acquisition with the Microsoft Identity platform in JavaScript applications. Implements the following OAuth 2.0 protocols and isOpenID-compliant:
Microsoft Authentication Library for JavaScript: A browser-based, framework-agnostic browser library that enables authentication and token acquisition with the Microsoft Identity platform in JavaScript applications. Implements the OAuth 2.0Authorization Code Flow with PKCE, and isOpenID-compliant.
Native Authentication Support for JavaScript: MSAL also provides native authentication APIs that allow applications to implement a native experience with end-to-end customizable flows in their applications. With native authentication, users are guided through a rich, native, sign-up and sign-in journey without leaving the app. The native authentication feature is available for SPAs onExternal ID for customers. It is recommended to always use the most up-to-date version of the SDK.
Note: The native authentication feature is currently in preview and is not considered production-stable. Features and APIs may change before general availability.
Terminology: In the codebase, the term "Custom Auth" is used instead of "Native Auth". You will find classes, interfaces, and configuration options prefixed with
CustomAuth
(e.g.,CustomAuthPublicClientApplication
,CustomAuthConfiguration
). Please refer to these when implementing or exploring the native authentication feature in the code.Microsoft Authentication Library for React: A wrapper of the msal-browser library for apps using React.
Microsoft Authentication Library for Angular: A wrapper of the msal-browser library for apps using Angular framework.
Microsoft Authentication Extensions for Node: The Microsoft Authentication Extensions for Node offers secure mechanisms for client applications to perform cross-platform token cache serialization and persistence. It gives additional support to the Microsoft Authentication Library for Node (MSAL).
The following libraries, hosted on themsal-lts
branch, are no longer in active development, but they are still receiving critical security bug fix support.
- Microsoft Authentication Library for JavaScript v2.x
- Microsoft Authentication Library for Node.js v1.x
- Microsoft Authentication Library for React v1.x
- Microsoft Authentication Library for Angular v2.x
We ship a number of different packages which are meant for different platforms. You can see the relationship between packages and different authentication flows they implement below.
Thesamples
folder contains sample applications for our libraries. A complete list of samples can be found in the respective package folders oron our wiki.
All of our libraries followsemantic versioning. We recommend using the latest version of each library to ensure you have the latest security patches and bug fixes.
Please check theroadmap to see what we are working on and what we have planned for future releases.
GitHub Issues is the best place to ask questions, report bugs, and new request features.
FAQs for access to our frequently asked questions.
Stack Overflow using "msal" and "msal.js" tag.
We enthusiastically welcome contributions and feedback. Please read thecontributing guide before you begin.
If you find a security issue with our libraries or servicesplease report it to the Microsoft Security Response Center (MSRC) with as much detail as possible. Your submission may be eligible for a bounty through theMicrosoft 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 visitingthis page and subscribing to Security Advisory Alerts.
Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License (the "License").
This project has adopted theMicrosoft Open Source Code of Conduct. For more information see theCode of Conduct FAQ or contactopencode@microsoft.com with any additional questions or comments.
About
Microsoft Authentication Library (MSAL) for JS
Resources
License
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.