qmetrics.net

MSAL.js

JavaScript client libraries for Microsoft identity sign-in

MSAL.js helps browser and Node.js apps authenticate users with Microsoft Entra ID, personal Microsoft accounts, social providers via B2C, and obtain tokens for APIs like Microsoft Graph.

Overview

The Microsoft Authentication Library for JavaScript spans client-side SPAs and server-side Node services. Packages under the Azure AD organization include the core browser and node runtimes, React and Angular wrappers, and Node extensions that persist token caches securely across platforms.

Browser apps use msal-browser (with framework-specific wrappers) to perform interactive login, handle redirects or popups, and manage token lifetimes in memory or configured storage. Node services use msal-node for daemon or web API scenarios, optionally pairing with msal-node-extensions for encrypted, cross-platform cache serialization.

Supported identity targets include work and school tenants, consumer Microsoft accounts, and Azure AD B2C user flows with external identity providers. Documentation is organized by package, and versions follow semantic versioning with designated current and long-term support lines.

Consumers install via npm; the former public CDN distribution for msal-browser was retired in favor of bundler-based installs. Samples accompany each package, along with community support channels and security reporting guidance. MSAL focuses on authentication primitives; application teams still configure app registrations, redirect URIs, and API scopes in Entra ID.

Key features

  • Browser and Node authentication runtimes
  • React and Angular wrapper packages
  • Azure AD B2C and social IdP support
  • Microsoft Graph and custom API tokens
  • Secure Node token cache extensions
  • Semantic versioning with LTS tracks
  • npm-distributed modular packages
  • Redirect and popup login flows

Use cases

  • Single-page apps signing in with Entra ID
  • Angular or React apps using MSAL wrappers
  • Node backends with confidential client flows
  • Consumer-facing B2C login experiences
  • Calling Microsoft Graph from JavaScript

Similar software

Keycloak

Identity and access management for applications and services

Keycloak adds authentication and single sign-on to applications so they do not store or verify users themselves. It supports standard protocols and central admin tools.

★ 38.1k⟳ todayApache-2.0
Open Source Alternative to:Amazon CognitoAuth0+7

JumpServer

Open-source bastion host for privileged access

JumpServer is a privileged access management platform that unifies secure access to SSH, RDP, Kubernetes, databases, and web assets.

★ 32.1k⟳ yesterdayGPL-3.0
Open Source Alternative to:BeyondTrust

Better Auth

Composable TypeScript authentication and authorization framework

Better Auth is a framework-agnostic authentication and authorization framework for TypeScript. You configure it in code and extend it with plugins for flows like social login, organizations, and enterprise SSO.

★ 30.9k⟳ todayMIT
Open Source Alternative to:Stytch

Infisical

Open-source security infrastructure for secrets, certs, and access

Infisical is a security infrastructure platform where teams manage application secrets, certificates, privileged access, and AI agent credentials in one place.

★ 30.8k⟳ todayMIT · open core
Secrets ManagementSelf-hostable
Open Source Alternative to:Keeper

Authelia

Self-hosted SSO portal with multi-factor authentication

Authentication and authorization server that sits in front of reverse proxies. Provides a web portal for login, OpenID Connect, and granular access rules with several second-factor methods.

★ 29.8k⟳ todayApache-2.0
Open Source Alternative to:Amazon CognitoAuth0+2

NextAuth

Web authentication libraries for JavaScript frameworks

Auth.js (NextAuth) adds sign-in, sessions, and OAuth to modern JavaScript apps. Packages target Next.js, SvelteKit, Express, Qwik, and other runtimes.

★ 28.4k⟳ 4 months agoISC