awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com

Web Application Authentication Libraries

Ranking updated Jun 30, 2026

For an authentication library for web applications, the first results are pennersr/django-allauth, supertokens/supertokens-core (supertokens-core is a self-hosted authentication platform with built-in support for OAuth/OIDC, social login, passwordless, and user management, making it an excellent fit for your requirements) and zitadel/zitadel. teamhanko/hanko and lucia-auth/lucia round out the shortlist. Compare the match explanations and check the project documentation against your requirements.

Implement secure user login, session management, and identity verification using these robust open-source authentication frameworks.

Web Application Authentication Libraries

Find the best repos with AI.We'll search the best matching repositories with AI.
  • pennersr/django-allauthpennersr avatar

    pennersr/django-allauth

    10,342View on GitHub↗

    django-allauth is a comprehensive authentication framework for Django applications that manages user registration, account ownership verification, and secure login processes. It provides a system for handling the entire user account lifecycle, including the ability to define custom signup fields and implement identity verification. The project distinguishes itself by providing a suite of OAuth and SAML integrations for social account authentication and the capability to act as an OpenID Connect identity provider. It further supports decoupled architectures through a token-based headless authe

    django-allauth is a full-featured Django authentication framework that handles OAuth2, OpenID Connect, social login, passwordless (WebAuthn/passkeys), multi-factor authentication, and user management via Django's admin, all in a self-hostable package — exactly the comprehensive solution this search asks for.

    PythonMulti-Factor AuthenticationOpenID Connect ProvidersSocial Login Integrations
    View on GitHub↗10,342
  • supertokens/supertokens-coresupertokens avatar

    supertokens/supertokens-core

    15,344View on GitHub↗

    SuperTokens Core is an open-source, self-hosted authentication and identity management platform designed for deployment within private infrastructure. It provides a comprehensive suite for managing user accounts, roles, and secure authentication flows, utilizing a modular, recipe-based architecture that allows developers to enable specific security features without modifying the core codebase. The platform distinguishes itself through its robust multi-tenancy capabilities, which allow for the logical or physical isolation of user records and configuration settings across different organizatio

    supertokens-core is a self-hosted authentication platform with built-in support for OAuth/OIDC, social login, passwordless, and user management, making it an excellent fit for your requirements.

    JavaPasswordless AuthenticationSocial Login IntegrationsMagic Link
    View on GitHub↗15,344
  • zitadel/zitadelzitadel avatar

    zitadel/zitadel

    13,029View on GitHub↗

    This project is a cloud-native identity and access management platform designed to centralize authentication, authorization, and identity lifecycle management. It functions as a standards-compliant OpenID Connect authorization server, providing secure session management and token issuance for web, mobile, and device-based applications. The platform is built to handle complex identity requirements through stateless token authentication and support for modern passwordless methods, including biometrics and hardware keys. What distinguishes this platform is its native support for multi-tenant env

    Zitadel is a cloud-native identity and access management platform that acts as a full OpenID Connect authorization server with built-in support for OAuth 2.0, passwordless (passkeys, biometrics), multi-factor authentication, and multi-tenant user management, making it a comprehensive and self-hostable authentication solution that directly matches the request.

    GoOpenID Connect ProvidersPasswordless Authentication
    View on GitHub↗13,029
  • teamhanko/hankoteamhanko avatar

    teamhanko/hanko

    8,801View on GitHub↗

    Hanko is an open-source identity provider and customer identity and access management system. It serves as a passkey authentication service and an OAuth and SAML SSO gateway, allowing applications to authenticate users and issue tokens via standard identity protocols. The project distinguishes itself through a strong focus on passwordless access using WebAuthn-based passkeys and email-based passcodes. It provides framework-agnostic authentication interfaces as customizable web components that can be embedded directly into web applications to handle login, registration, and profile management.

    Hanko is a self-hostable identity provider and CIAM system that delivers passwordless authentication via WebAuthn and email passcodes, while also supporting OAuth 2.0, OpenID Connect, SAML, and multi-factor authentication; its embedded web components and user management capabilities make it a comprehensive, ready-to-use authentication solution for web applications.

    GoMulti-Factor AuthenticationPasswordless AuthenticationSocial Login Providers
    View on GitHub↗8,801
  • lucia-auth/lucialucia-auth avatar

    lucia-auth/lucia

    10,447View on GitHub↗

    Lucia is an authentication library that provides session management, OAuth integration, and password-based login for web applications. It creates and validates server-side sessions using cryptographically random tokens stored in HttpOnly, Secure, SameSite=Lax cookies, with constant-time token comparison to prevent timing side-channel attacks. The library supports authentication through email and password, GitHub OAuth, Google OAuth, and passkey-based sign-in. It enforces two-factor authentication using time-based one-time passwords (TOTP) from authenticator apps, generates recovery codes for

    Lucia is a TypeScript authentication library that provides session management, OAuth (GitHub/Google) and social login, passkey-based passwordless authentication, and TOTP two-factor authentication, making it a strong fit for adding login to web apps — though it does not include a built-in user management admin panel, so you would need to build that yourself.

    TypeScriptPasswordless AuthenticationSocial Login IntegrationsPasskey Authentication
    View on GitHub↗10,447
  • steveiliop56/tinyauthsteveiliop56 avatar

    steveiliop56/tinyauth

    6,979View on GitHub↗

    Tinyauth is an authentication middleware service and identity provider that verifies user identities to grant system access. It operates as a standalone server or as an authentication gateway, utilizing a reverse proxy model to intercept requests and validate credentials before traffic reaches protected backend services. The project functions as an OpenID Connect provider for single sign-on experiences and an OAuth 2.0 gateway that delegates verification to external providers such as Google and GitHub. It also acts as an LDAP authentication server, allowing for centralized user management and

    Tinyauth is a self-hostable authentication middleware and identity provider that works as an OAuth/OIDC gateway with support for social logins (Google, GitHub), multi-factor authentication (TOTP), and LDAP-based user management, making it a good fit for adding authentication to web applications—though it lacks a dedicated user management admin panel and passwordless login.

    GoMulti-Factor AuthenticationOpenID Connect ProvidersMulti-Factor Authentication Providers
    View on GitHub↗6,979
  • authelia/autheliaauthelia avatar

    authelia/authelia

    29,590View on GitHub↗

    Authelia is a centralized identity and access management server designed to secure web applications through unified authentication and authorization. It functions as an identity authority that enables single sign-on across diverse platforms, allowing users to access multiple services with a single set of credentials. By acting as a standards-compliant provider, it facilitates secure identity propagation and token issuance for client applications. The platform distinguishes itself through its ability to integrate directly with web gateways as a reverse proxy authentication middleware, intercep

    Authelia is a self-hostable identity and access management server providing OAuth2/OIDC, multi-factor, passwordless (WebAuthn), and user management, but it lacks built-in social login integration, so it fits the core authentication need though you may need additional configuration for social login.

    GoMulti-Factor AuthenticationOpenID Connect ProvidersMulti-Factor Authentication Providers
    View on GitHub↗29,590
  • pocket-id/pocket-idpocket-id avatar

    pocket-id/pocket-id

    8,185View on GitHub↗

    Pocket ID is a self-hosted OpenID Connect (OIDC) identity provider that replaces traditional passwords with passkey-based authentication using WebAuthn public-key cryptography. It runs as a standalone service on user-managed infrastructure, eliminating shared secrets entirely by authenticating users through passkeys instead of passwords. The project distinguishes itself through security-hardened deployment patterns, including distroless container images, non-root user execution, and read-only root filesystems to reduce the attack surface. It supports configurable token signing algorithms (RSA

    Pocket ID is a self-hosted OpenID Connect identity provider that uses passkeys for passwordless authentication, covering OAuth/OIDC and user management, but it lacks social login integration and multi-factor authentication, making it a narrower fit for the full set of requested features.

    GoOpenID Connect ProvidersPasskey AuthenticationWebAuthn Authentications
    View on GitHub↗8,185
  • authlib/authlibauthlib avatar

    authlib/authlib

    5,449View on GitHub↗

    Authlib is a comprehensive Python library for building and integrating OAuth 1.0, OAuth 2.0, and OpenID Connect clients and servers. It provides a unified set of tools to manage authentication and authorization flows, allowing applications to either act as a client connecting to external identity providers or as a provider issuing tokens and managing user identities. The project distinguishes itself through a full implementation of the JOSE standards, offering a suite of cryptographic tools for generating, signing, encrypting, and validating JSON Web Tokens, Signatures, Encryption, and Keys.

    Authlib is a comprehensive Python library for building OAuth 2.0 and OpenID Connect authentication flows, making it a perfect foundation for adding user login to web applications, though it leaves features like an admin panel or MFA to extra implementation.

    PythonOAuth 2.0 Authorization ServersOpenID Connect ProvidersOpenID Connect Support
    View on GitHub↗5,449
  • casdoor/casdoorcasdoor avatar

    casdoor/casdoor

    14,779View on GitHub↗

    Casdoor is a centralized identity and access management platform that functions as an OAuth 2.0 authorization server. It provides a comprehensive suite of services for managing user identities, authentication sessions, and access policies across both web and machine-to-machine applications. Built with a decoupled frontend-backend architecture in Go, the platform supports high-concurrency environments and offers a web-based management interface for administrative tasks. The platform distinguishes itself through its extensive support for federated identity management, allowing integration with

    Casdoor is a full-featured centralized identity and access management platform with built-in OAuth 2.0/OIDC, social login, passwordless (WebAuthn), MFA, and an admin panel for user management, and it is self-hostable, making it an excellent fit for adding authentication to web applications.

    GoOAuth AuthenticationOAuth2 ProvidersUser Management
    View on GitHub↗14,779
  • anomalyco/openauthanomalyco avatar

    anomalyco/openauth

    7,436View on GitHub↗

    OpenAuth is a standards-based authentication server and identity provider that implements OAuth 2.0 and OpenID Connect protocols. It serves as a centralized system for managing user identities, issuing access tokens, and orchestrating authentication flows across various services. The project functions as a federated identity gateway, aggregating external providers such as Google, GitHub, Microsoft, Apple, and Discord into a unified login flow. It distinguishes itself with a multi-tenant architecture that supports pluggable identity providers and customizable user interface frameworks for bran

    OpenAuth is a self-hostable OAuth 2.0/OIDC identity provider that aggregates social login from Google, GitHub, Apple, and more, making it a solid fit for adding authentication to web applications—though it lacks explicit passwordless and MFA features compared to more comprehensive solutions.

    TypeScriptOAuth 2.0 Authorization ServersOpenID Connect ProvidersOpenID Connect Support
    View on GitHub↗7,436
  • ory/kratosory avatar

    ory/kratos

    13,455View on GitHub↗

    Kratos is a centralized identity and access management server designed to handle user registration, authentication, and profile management. It functions as an identity flow orchestrator, managing the state and security of authentication processes across web, mobile, and command-line interfaces. The system provides a standards-compliant authorization server that issues tokens and manages delegated access for third-party applications and internal services, supporting multi-factor authentication and custom identity schemas to secure user accounts. The project distinguishes itself through a headl

    Kratos is a self-hostable identity and access management server that handles user registration, authentication, and profile management with OAuth2/OIDC and multi-factor authentication, making it a solid match for adding login to web apps, though features like social login and passwordless are not explicitly highlighted.

    GoMulti-Factor AuthenticationMulti-Factor AuthenticationOAuth2 Providers
    View on GitHub↗13,455
  • coreos/dexcoreos avatar

    coreos/dex

    10,885View on GitHub↗

    Dex is an OpenID Connect identity provider that functions as an identity federation gateway. It authenticates users and issues signed tokens for applications by using a variety of pluggable connectors to interface with external identity sources. The project focuses on federating multiple external identity providers into a single authentication portal. It maps diverse external authentication sources to a uniform internal user representation and manages the orchestration of authorization handshakes between clients and identity sources. Capability areas include centralized user authentication,

    Dex is an OpenID Connect identity provider that you can self-host to authenticate users via OAuth2/OIDC and federate with social logins, fitting the search for an authentication solution, though it lacks a built-in user management admin panel, passwordless login, and multi-factor authentication.

    GoOpenID Connect ProvidersOAuth Authentication
    View on GitHub↗10,885
  • keycloak/keycloakkeycloak avatar

    keycloak/keycloak

    37,746View on GitHub↗

    Keycloak is an open-source identity and access management server that provides a centralized platform for user authentication, authorization, and identity federation. It functions as a standards-compliant identity provider, utilizing a centralized engine to validate credentials and issue cryptographically signed tokens based on industry-standard protocols like OpenID Connect and SAML. This enables organizations to secure diverse applications and services through a unified authentication layer. The platform distinguishes itself through its cloud-native orchestration and high-availability capab

    Keycloak is a full-featured identity and access management server that supports OAuth 2.0/OIDC, social login, passwordless authentication, multi-factor authentication, and includes a built-in admin console for user management, all while being self-hostable — exactly the comprehensive authentication solution this search is after.

    JavaIdentity ServersIdentity Management SystemsIdentity Providers
    View on GitHub↗37,746
  • logto-io/logtologto-io avatar

    logto-io/logto

    14,851View on GitHub↗

    Logto is an open-source identity provider that serves as a centralized authentication and authorization server for web, mobile, and command-line applications. It implements the OpenID Connect and OAuth 2.1 standards to handle secure user sign-in and the issuance of identity tokens. The platform is specifically designed as a multi-tenant authentication framework for software-as-a-service environments, featuring built-in organization management and tenant isolation. It includes an enterprise single sign-on gateway to integrate external identity providers and supports role-based access control t

    Logto is an open-source identity provider implementing OAuth 2.1 and OpenID Connect, offering social login, passwordless authentication, MFA, and a user management console, all self-hostable — a complete match for adding user authentication to web applications.

    TypeScriptIdentity and Access Management ServersIdentity ProvidersEnterprise Identity Providers
    View on GitHub↗14,851
  • dromara/sa-tokendromara avatar

    dromara/Sa-Token

    19,111View on GitHub↗

    Sa-Token is a Java-based authentication and authorization framework designed to manage user sessions, permissions, and identity verification within web applications and microservice architectures. It provides a centralized security layer that enforces access control policies and identity validation across distributed service environments and API gateways. The framework distinguishes itself through its support for cross-domain single sign-on and its ability to function as an OAuth2 identity provider. It manages user session lifecycles by applying configurable rules for single or multi-login re

    Sa-Token is a Java authentication and authorization framework with OAuth2 and SSO support, making it a valid choice for adding login to web apps, but it lacks built-in social login, passwordless, MFA, and an admin panel.

    JavaOAuth2 Providers
    View on GitHub↗19,111
  • apereo/casapereo avatar

    apereo/cas

    11,347View on GitHub↗

    This project is an open-source identity provider and single sign-on platform that centralizes user authentication for multiple web applications and services. It functions as a multi-protocol authentication gateway, verifying user identities and issuing tokens through the CAS protocol as well as industry standards including SAML, OAuth2, and OpenID Connect. The system acts as a federated identity server, allowing authentication to be delegated to external third-party or corporate identity providers. It distinguishes itself through identity attribute governance, which manages which specific use

    Apereo CAS is an enterprise single sign-on and identity provider platform supporting OAuth2, OIDC, SAML, MFA via Duo and FIDO, delegated social login, and a user management admin panel — it fits the need for a self-hosted authentication solution, though explicit passwordless authentication support is not prominent in its evidence and its full deployment is heavier than a lightweight library.

    JavaMultifactor Authentication
    View on GitHub↗11,347
  • better-auth/better-authbetter-auth avatar

    better-auth/better-auth

    30,638View on GitHub↗

    This project is a modular authentication framework designed to manage user identity, session tracking, and access control across web applications. It provides a unified solution for handling email-based credentials and social identity federation, allowing developers to implement secure login and registration flows that maintain consistent user states across client and server environments. The system utilizes a plugin-based architecture and middleware-driven request interception to allow for the extension of core authentication logic. It features type-safe schema generation, which derives data

    Better Auth is a modular authentication framework for web applications that handles social identity federation, OAuth/OIDC, and user management, directly matching the search for an easily integrated authentication solution with support for the requested features.

    TypeScriptSocial Authentication Providers
    View on GitHub↗30,638
  • ory/hydraory avatar

    ory/hydra

    17,649View on GitHub↗

    Hydra is a headless identity server that functions as a certified OAuth2 and OpenID Connect provider. It is designed as an authentication engine that manages authorization handshakes and token lifecycles while remaining decoupled from the user interface. The project distinguishes itself through a headless architecture, allowing external management of login and consent flows. It provides specialized capabilities for dynamic client registration, JSON Web Token issuance, and a system for rotating encryption secrets without service downtime. The system covers a broad range of identity operations

    Hydra is a self-hostable identity server providing certified OAuth 2.0 and OpenID Connect for web application authentication, but its headless design means it lacks a built-in user management admin panel, passwordless login, or MFA, covering the core protocol support while missing some of the all-in-one features this search describes.

    GoOpenID Connect Providers
    View on GitHub↗17,649
  • nextauthjs/next-authnextauthjs avatar

    nextauthjs/next-auth

    28,277View on GitHub↗

    Next-auth is an authentication and identity management library for web frameworks. It provides a unified system for handling user sign-in and session state across server and client environments, functioning as a session management framework and an OIDC authentication library. The project distinguishes itself through a provider-based identity abstraction that supports multiple authentication methods, including OAuth, email magic links, traditional credentials, and passwordless passkeys. It allows for the registration of custom OAuth or OIDC compliant providers and offers tools to define branda

    NextAuth is an authentication library that directly provides OAuth/OIDC, social login, and passwordless login for web apps, making it a solid fit for your intent; note it does not include a dedicated user management admin panel or built-in multi-factor authentication, so those would need to be added separately.

    TypeScriptAuthentication FrameworksOAuth and Identity ProvidersAuthentication Middleware
    View on GitHub↗28,277
  • omniauth/omniauthomniauth avatar

    omniauth/omniauth

    8,102View on GitHub↗

    OmniAuth is a rack authentication framework that allows applications to verify user identities through third-party service providers using a single standardized interface. It functions as middleware to separate identity verification from core application logic by intercepting incoming requests. The project employs a strategy-pattern provider model to encapsulate provider-specific logic into interchangeable classes. It provides a custom authentication strategy framework and base classes for building new providers based on industry standards. The framework handles the multi-step authentication

    OmniAuth is a flexible Ruby authentication framework that provides standardized OAuth/OIDC and social login via a strategy pattern, fitting the request for an authentication library, though it lacks built-in user management, passwordless, and MFA features.

    RubyAuthentication MiddlewaresAuthentication StrategiesAuth Handshake Middleware
    View on GitHub↗8,102
  • florianheinemann/passwordlessflorianheinemann avatar

    florianheinemann/passwordless

    1,946View on GitHub↗

    Passwordless is a Node.js authentication library that enables secure user identity verification using one-time tokens instead of traditional passwords. It functions as a middleware-based identity provider, protecting application routes and resources by validating these tokens before granting access. The library distinguishes itself through a highly decoupled architecture that separates token generation, verification, and delivery. Developers can implement custom token delivery strategies to dispatch authentication codes via email, SMS, or voice services. Furthermore, the system supports both

    This Node.js/Express module provides passwordless authentication, so it is an authentication solution for web applications, but it does not include OAuth/OIDC, social login, user management, or multi-factor authentication — it is a much narrower offering than the typical full-featured auth library sought here.

    JavaScriptPasswordless Authentication
    View on GitHub↗1,946
  • mikker/passwordlessmikker avatar

    mikker/passwordless

    1,337View on GitHub↗

    Passwordless is an authentication engine for Ruby on Rails applications that replaces traditional password management with email-based magic link verification. It enables secure user access by generating and validating time-limited, cryptographically signed tokens, allowing users to authenticate through their email addresses. The framework provides comprehensive session lifecycle management, including configurable expiration policies and route-based access control to protect sensitive application areas. It incorporates security primitives such as request rate limiting to mitigate brute force

    mikker/passwordless is a Ruby on Rails engine that implements passwordless authentication, which directly matches the visitor's need for an authentication library for web applications, though it is limited to passwordless login and does not include OAuth/OIDC, social login, or an admin panel as listed.

    RubyPasswordless AuthenticationMagic Link
    View on GitHub↗1,337
  • python-social-auth/social-app-djangopython-social-auth avatar

    python-social-auth/social-app-django

    2,133View on GitHub↗

    This project is a Django library that enables web applications to authenticate users through third-party identity providers using standard protocols like OAuth and OpenID Connect. It functions as an integration layer that delegates authentication to external services, allowing users to sign in with existing accounts while maintaining a persistent link to their local application profile. The library distinguishes itself through a modular pipeline that executes a sequence of functions to validate and manage user records during the login process. It employs a strategy-based approach to encapsula

    A Django library that plugs social authentication (OAuth2 via many providers) into your app, but it does not offer user management, MFA, or passwordless login out of the box.

    PythonSocial Login IntegrationsSocial Authentication Providers
    View on GitHub↗2,133
  • lipp/login-withlipp avatar

    lipp/login-with

    2,340View on GitHub↗

    Login-with is a centralized authentication gateway designed to decouple identity verification from individual application services. It functions as a stateless microservice that orchestrates user login and logout flows by integrating with external identity providers. The project distinguishes itself through its ability to manage user sessions across multiple subdomains. By issuing encrypted, domain-wide cookies, it maintains consistent user state and profile information as users navigate between different parts of a distributed web architecture. The service handles the full lifecycle of user

    lipp/login-with is a stateless microservice that handles OAuth login with multiple providers like Google, Facebook, and Twitter, so it fits the search for adding social login and OAuth to web apps, though it lacks user management, passwordless, and MFA features found in a full authentication platform.

    JavaScriptIdentity GatewaysAuthentication GatewaysCross-Subdomain Session Management
    View on GitHub↗2,340
Compare the top 10 at a glance
RepositoryStarsLanguageLicenseLast push
pennersr/django-allauth10.3KPythonMITMay 29, 2026
supertokens/supertokens-core15.3KJavaNOASSERTIONNov 6, 2026
zitadel/zitadel13KGoagpl-3.0Feb 20, 2026
teamhanko/hanko8.8KGootherFeb 19, 2026
lucia-auth/lucia10.4KTypeScriptMITAug 8, 2026
steveiliop56/tinyauth7KGogpl-3.0Feb 20, 2026
authelia/authelia29.6KGoApache-2.0Nov 7, 2026
pocket-id/pocket-id8.2KGoBSD-2-ClauseJun 23, 2026
authlib/authlib5.4KPythonBSD-3-ClauseNov 7, 2026
casdoor/casdoor14.8KGoApache-2.0Nov 7, 2026

Related searches

  • a passkey authentication library
  • an Auth0 alternative
  • a multi-factor authentication library
  • Authentication library
  • a Next.js starter boilerplate with auth and billing
  • Authentication and Authorization
  • an authorization library for managing access control
  • a self-hosted identity provider