qmetrics.net

MSAL.NET

Microsoft identity client library for .NET applications

MSAL for .NET acquires OAuth2 and OpenID Connect tokens so apps can call protected APIs. It targets the Microsoft identity platform and supports Azure AD B2C scenarios.

Overview

The Microsoft Authentication Library for .NET helps desktop, mobile, and server-side .NET code sign users in and obtain access tokens for resource APIs. It implements industry-standard OAuth2 and OpenID Connect flows against Microsoft Entra ID (formerly Azure AD) and can be configured for consumer and workforce tenants as well as Azure AD B2C policies.

Applications construct public or confidential client instances, perform interactive or silent token acquisition, and cache results according to MSAL’s account and token cache model. The library integrates with higher-level wrappers such as Microsoft.Identity.Web and identity SDK extensions used in ASP.NET and MAUI apps.

Release policy distinguishes major and minor versions: majors receive security fixes for a defined window after successors ship, and teams are steered toward current minors for patches. Optional reduced logging moves selected informational traces to verbose channels when an environment flag is set at process start.

Distribution is via NuGet packages with samples published for common app types. MSAL itself does not host login UI beyond what your app provides; it handles protocol exchanges, authority metadata, and token lifecycle concerns so callers can authorize HTTP requests to Microsoft Graph and other protected endpoints.

Key features

  • OAuth2 and OpenID Connect token acquisition
  • Microsoft Entra ID and B2C support
  • Public and confidential client flows
  • Token cache and silent refresh
  • Microsoft.Identity.Web integration path
  • Optional reduced diagnostic logging
  • NuGet packaging with semantic versioning
  • Documented performance testing approach

Use cases

  • Calling Microsoft Graph from .NET apps
  • Signing users into ASP.NET web APIs
  • Desktop or MAUI apps using Entra ID
  • Business-to-consumer flows with Azure AD B2C
  • Securing backend services with acquired tokens

Tags

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