Open source authentication projects

Every project in the registry tagged authentication, ranked by real GitHub adoption.

projects 39 combined stars ★ 304K refresh nightly
01 Better Auth ★ 31K

Framework-agnostic authentication for TypeScript applications

last push35 hours ago languageTypeScript licenseMIT
02 authelia ★ 29K

The Single Sign-On Multi-Factor portal for web apps. OpenID Certified™ and Post-Quantum Cryptography Ready.

last push9 hours ago languageGo licenseApache-2.0
03 Authentik ★ 26K

Take control of your identity with a secure, flexible solution

last push2 hours ago languagePython license—
04 casbin ★ 20K

Apache Casbin: an authorization library that supports access control models like ACL, RBAC, ABAC.

last push9 hours ago languageGo licenseApache-2.0
05 Zitadel ★ 15K

Secure, customizable identity infrastructure for developers

last push4 hours ago languageGo licenseAGPL-3.0
06 SuperTokens ★ 15K

Secure, customizable authentication for your applications

last push7 hours ago languageJava license—
07 Logto ★ 15K

Secure, seamless authentication for modern applications

last push15 hours ago languageTypeScript licenseMPL-2.0
08 casdoor ★ 15K

An open-source Agent-first Identity and Access Management (IAM) /LLM MCP & agent gateway and auth server with web UI supporting OpenClaw, MCP, OAuth, OIDC, SAML

last push4 hours ago languageGo licenseApache-2.0
09 fastapi_mcp ★ 12K

Expose your FastAPI endpoints as Model Context Protocol (MCP) tools, with Auth!

last push11 months ago languagePython licenseMIT
10 cas ★ 11K

Apereo CAS - Identity & Single Sign On for all earthlings and beyond.

last push13 hours ago languageJava licenseApache-2.0
11 django-allauth ★ 10K

Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (social) account authentication. 🔁 Mirro

last push3 days ago languagePython licenseMIT
12 NHost ★ 9.4K

Serverless backend platform for modern app development

last push6 hours ago languageGo licenseMIT
13 hanko ★ 9.1K

last push2 hours ago languageGo licenseAGPL-3.0
14 tinyauth ★ 8.5K

The tiniest OpenID Certified™ authorization and authentication server you have ever seen.

last push4 hours ago languageGo licenseAGPL-3.0
15 nebular ★ 8.1K

:boom: Customizable Angular UI Library based on Eva Design System :new_moon_with_face::sparkles:Dark Mode

last push10 months ago languageTypeScript licenseMIT
16 firebase-ios-sdk ★ 7.0K

Firebase SDK for Apple App Development

last push5 hours ago languageC++ licenseApache-2.0
17 Hexclave ★ 6.9K

Modular auth, payments, emails, and analytics for your product

last push3 hours ago languageTypeScript license—
18 go-grpc-middleware ★ 6.8K

Golang gRPC Middlewares: interceptor chaining, auth, logging, retries and more.

last push27 days ago languageGo licenseApache-2.0
19 Cosmos Server ★ 6.2K

Self-hosted cloud platform with automated security

last push12 days ago languageGo license—
20 UnKey ★ 5.5K

Secure, scalable API key management for developers

last push2 hours ago languageGo license—
21 oauth2-client ★ 3.8K

Easy integration with OAuth 2.0 service providers.

last push19 hours ago languagePHP licenseMIT
22 vouch-proxy ★ 3.3K

an SSO and OAuth / OIDC login solution for Nginx using the auth_request module

last push1 months ago languageGo licenseMIT
23 voidauth ★ 2.9K

Single Sign-On for Your Self-Hosted Universe

last push9 hours ago languageTypeScript licenseAGPL-3.0
24 Defguard ★ 2.9K

Zero-Trust VPN with built-in 2FA/MFA and SSO capabilities

last push8 hours ago languageRust license—
25 amplify-cli ★ 2.9K

The AWS Amplify CLI is a toolchain for simplifying serverless web and mobile development.

last push8 hours ago languageTypeScript licenseApache-2.0
26 pac4j ★ 2.5K

Security engine for Java (authentication, authorization, multi frameworks): OpenID Connect, SAML2, CAS, OAuth, LDAP, JWT...

last push13 hours ago languageJava licenseApache-2.0
27 smart-sso ★ 2.3K

SpringBoot single sign-on authentication and authorization, implemented with OAuth 2.0, supporting cross-domain and distributed deployment.

last push4 days ago languageJava licenseMIT
28 caddy-security ★ 2.3K

🔐 Authentication, Authorization, and Accounting (AAA) App and Plugin for Caddy v2. 💎 Implements Form-Based, Basic, Local, LDAP, OpenID Connect, OAuth 2.0 (Git

last push6 days ago languageGo licenseApache-2.0
29 Authgear ★ 2.1K

Managed identity and access management for any app

last push10 hours ago languageGo licenseApache-2.0
30 xxl-sso ★ 2.0K

A distributed single-sign-on framework.(单点登录框架XXL-SSO)

last push21 days ago languageJava licenseGPL-3.0
31 privacyidea ★ 1.8K

:closed_lock_with_key: multi factor authentication system (2FA, MFA, OTP, FIDO Server)

last push6 hours ago languagePython licenseAGPL-3.0
32 rauthy ★ 1.4K

Single Sign-On Identity & Access Management via OpenID Connect, OAuth 2, PAM

last push3 days ago languageRust licenseApache-2.0
33 mod_auth_openidc ★ 1.1K

OpenID Certified™ OpenID Connect and FAPI 2 Relying Party module for Apache HTTPd

last pushyesterday languageC licenseApache-2.0
34 product-is ★ 888

Welcome to the WSO2 Identity Server source code! For info on working with the WSO2 Identity Server repository and contributing code, click the link below.

last push21 hours ago languageJava licenseApache-2.0
35 phpCAS ★ 800

Apereo PHP CAS Client

last push4 months ago languagePHP licenseApache-2.0
36 webauthn-ruby ★ 777

WebAuthn ruby server library ― Make your Ruby/Rails web server become a conformant WebAuthn Relying Party

last push10 days ago languageRuby licenseMIT
37 webauthn ★ 618

Webauthn / passkeys helper library to make your life easier. Client side, server side and demo included.

last push12 days ago languageTypeScript licenseMIT
38 webauthn4j ★ 599

A portable Java library for WebAuthn(Passkeys) server side verification

last push21 hours ago languageJava licenseApache-2.0
39 wp-discourse ★ 544

WordPress plugin that lets you use Discourse as the community engine for a WordPress blog

last push2 months ago languagePHP licenseGPL-3.0

Related tags

← all tags

Frequently asked questions

How many open source authentication projects are there?

This registry tracks 39 projects tagged authentication, with 303,814 GitHub stars between them. The most-adopted is Better Auth at 30,553 stars.

Are these authentication projects free to use?

Yes — 33 of the 39 carry an explicit open-source licence across 5 distinct licences, so there is no licence fee. Where a project also sells a hosted or enterprise version, the self-hosted path remains free.

Which authentication project should I choose?

The list above is ranked by GitHub stars, but stars measure attention rather than fit. Check three things on each card: the licence (permissive versus copyleft), the language it is written in, and the last-push date — a high-star project that has not been pushed in a year is a liability.

Are these authentication projects still maintained?

36 of the 39 were pushed in the last 90 days, and every card shows its exact last-push date so you can see the rest. Sort your shortlist by that date before committing to a migration.