back to home

Best Open Source authentication Libraries

A curated list of the most popular GitHub repositories tagged with authentication. Select any project to visualize its architecture and dive into the codebase using RepoMind's AI engine.

#1pocketbase/pocketbase

Open Source realtime backend in 1 file

56,789Go
Explore Repo

#2nextauthjs/next-auth

Authentication for the Web.

28,152TypeScript
Explore Repo

#3better-auth/better-auth

The most comprehensive authentication framework for TypeScript

27,242TypeScript
Explore Repo

#4authelia/authelia

The Single Sign-On Multi-Factor portal for web apps, now OpenID Certified™

27,236Go
Explore Repo

#5goauthentik/authentik

The authentication glue you need.

25,762Python
Explore Repo

#6apache/casbin

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

19,924Go
Explore Repo

#7mikeroyal/Self-Hosting-Guide

Self-Hosting Guide. Learn all about locally hosting (on premises & private web servers) and managing software applications by yourself or your organization. Including Cloud, LLMs, WireGuard, Automation, Home Assistant, and Networking.

18,942Dockerfile
Explore Repo

#8supertokens/supertokens-core

Open source alternative to Auth0 / Firebase Auth / AWS Cognito

14,970Java
Explore Repo

#9casdoor/casdoor

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, CAS, LDAP, SCIM, WebAuthn, TOTP, MFA, Face ID, Google Workspace, Azure AD

14,481Go
Explore Repo

#10nhost/nhost

The Open Source Firebase Alternative with GraphQL.

9,106TypeScript
Explore Repo

#11teamhanko/hanko

Modern authentication, on your terms. Open source alternative to Auth0, Clerk, WorkOS, Stytch.

8,867Go
Explore Repo

#12git-ecosystem/git-credential-manager

Secure, cross-platform Git credential storage with authentication to GitHub, Azure Repos, and other popular Git hosting services.

8,674C#
Explore Repo

#13dpgaspar/Flask-AppBuilder

Simple and rapid application development framework, built on top of Flask. includes detailed security, auto CRUD generation for your models, google charts and much more. Demo (login with guest/welcome) - http://flaskappbuilder.pythonanywhere.com/

4,946Python
Explore Repo

#14DefGuard/defguard

Zero-Trust access management with true WireGuard® 2FA/MFA

2,849Rust
Explore Repo

#15FreeRADIUS/freeradius-server

FreeRADIUS - A multi-protocol policy server.

2,603C
Explore Repo

#16pac4j/pac4j

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

2,529Java
Explore Repo

#17greenpau/caddy-security

🔐 Authentication, Authorization, and Accounting (AAA) App and Plugin for Caddy v2. 💎 Implements Form-Based, Basic, Local, LDAP, OpenID Connect, OAuth 2.0 (Github, Google, Facebook, Okta, etc.), SAML Authentication. MFA/2FA with App Authenticators and Yubico. 💎 Authorization with JWT/PASETO tokens. 🔐

2,239Go
Explore Repo

#18privacyidea/privacyidea

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

1,779Python
Explore Repo

#19WordPress/two-factor

Two-Factor Authentication for WordPress.

825PHP
Explore Repo

#20wenbin-wb/dsh-bridge

🚀 DeepSeek Harness 多通道远程访问与安全守护插件 | 局域网扫码直连、Cloudflare / 自建公网隧道、微信 / QQ / 飞书 / Telegram 机器人全生命周期对话 | 内置全协议访问安全认证、后台防篡改与容灾保命体系

177JavaScript
Explore Repo