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
#2nextauthjs/next-auth
Authentication for the Web.
#3better-auth/better-auth
The most comprehensive authentication framework for TypeScript
#4authelia/authelia
The Single Sign-On Multi-Factor portal for web apps, now OpenID Certified™
#5goauthentik/authentik
The authentication glue you need.
#6apache/casbin
Apache Casbin: an authorization library that supports access control models like ACL, RBAC, ABAC.
#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.
#8supertokens/supertokens-core
Open source alternative to Auth0 / Firebase Auth / AWS Cognito
#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
#10nhost/nhost
The Open Source Firebase Alternative with GraphQL.
#11teamhanko/hanko
Modern authentication, on your terms. Open source alternative to Auth0, Clerk, WorkOS, Stytch.
#12git-ecosystem/git-credential-manager
Secure, cross-platform Git credential storage with authentication to GitHub, Azure Repos, and other popular Git hosting services.
#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/
#14DefGuard/defguard
Zero-Trust access management with true WireGuard® 2FA/MFA
#15FreeRADIUS/freeradius-server
FreeRADIUS - A multi-protocol policy server.
#16pac4j/pac4j
Security engine for Java (authentication, authorization, multi frameworks): OpenID Connect, SAML2, CAS, OAuth, LDAP, JWT...
#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. 🔐
#18privacyidea/privacyidea
:closed_lock_with_key: multi factor authentication system (2FA, MFA, OTP, FIDO Server)
#19WordPress/two-factor
Two-Factor Authentication for WordPress.
#20wenbin-wb/dsh-bridge
🚀 DeepSeek Harness 多通道远程访问与安全守护插件 | 局域网扫码直连、Cloudflare / 自建公网隧道、微信 / QQ / 飞书 / Telegram 机器人全生命周期对话 | 内置全协议访问安全认证、后台防篡改与容灾保命体系