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

Découvrez les meilleurs dépôts open-source grâce à notre recherche par IA.

ExplorerRecherches sélectionnéesAlternatives open sourceLogiciels auto-hébergésBlogPlan du site
ProjetServeur MCPÀ proposNotre méthodologiePresse
Mentions légalesConfidentialitéConditions d'utilisation
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
lucia-auth avatar

lucia-auth/lucia

0
View on GitHub↗
lucia-auth.com↗

Lucia

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 account access, and requires 2FA verification before password resets. Session lifecycle management includes idle timeouts that extend only during active user interaction, short-lived tokens for speed and revocability, and throttled database writes to reduce load during session verification.

Additional capabilities include stateless token validation for self-contained tokens like JWTs, CSRF protection through Origin header checks or anti-CSRF tokens, and throttling of failed login attempts. The library adapts session handling to work with framework-specific request and response patterns.

Recherche par IA

Explorez plus de dépôts awesome

Décrivez vos besoins en langage naturel — l'IA classe des milliers de projets open source sélectionnés par pertinence.

Start searching with AI

Features

  • Authentication Frameworks - Provides a complete authentication framework for web apps with session management and multiple login methods.
  • Server-Side Session Stores - Creates server-side sessions identified by unguessable tokens to persist state across HTTP requests.
  • Secure Client-Side Session Storages - Stores session tokens in HttpOnly, Secure, SameSite=Lax cookies for secure client-side persistence.
  • Cryptographic Random Number Generators - Generates cryptographically random session tokens with at least 120 bits of entropy.
  • Authentication Libraries - Ships as an authentication library providing session management, OAuth, and password-based login.
  • Passwordless Authentication - Supports passkey-based sign-in and password reset with two-factor verification.
  • OAuth 2.0 Authorization Flows - Implements OAuth 2.0 authorization code flow for GitHub and Google login integration.
  • OAuth Provider Integrations - Integrates with GitHub and Google OAuth providers for social login with callback handling.
  • Session Cookie Security - Stores session tokens in HttpOnly, Secure, SameSite=Lax cookies for secure client-side storage.
  • Passkey Authentication - Supports passwordless sign-in using device-bound cryptographic passkeys for phishing-resistant authentication.
  • Password Authentication - Validates user credentials against stored email and password hashes to grant access.
  • Session Token Validation - Manages the full lifecycle of server-side sessions including creation, validation, extension, and idle timeout.
  • Database-Backed Session Validations - Stores session state in a database and validates tokens via constant-time hash comparison.
  • Session Management Frameworks - Provides a session management framework that adapts to framework-specific request and response patterns.
  • Social Login Integrations - Integrates social login via GitHub and Google OAuth with callback handling and session creation.
  • Token Generation - Generates cryptographically random strings with at least 120 bits of entropy for session identifiers.
  • Two-Factor Authentication - Enforces two-factor authentication using time-based one-time passwords from authenticator apps.
  • TOTP Enforcers - Enforces TOTP-based two-factor authentication using authenticator apps after primary login.
  • Timing-Side-Channel Protections - Implements constant-time token comparison to prevent timing side-channel attacks during session validation.
  • Failed Login Trackers - Limits failed login attempts from a single source within a time window to prevent brute-force attacks.
  • CSRF Protection - Blocks cross-site request forgery using Origin header checks and anti-CSRF tokens.
  • GitHub OAuth Integrations - Redirects users to GitHub's authorization flow and handles the callback to create a session.
  • Google OAuth Providers - Redirects users to Google's consent screen and handles the callback to create a session.
  • Idle Session Timeouts - Extends session lifespan only during active user interaction, logging out after prolonged inactivity.
  • Expiring Tokens - Issues short-lived tokens that expire within minutes for a balance of speed and revocability.
  • Recovery Code Generators - Produces one-use recovery codes that bypass 2FA when the primary authenticator app is unavailable.
  • Two-Factor-Guarded - Requires two-factor authentication before allowing a password reset.
  • Stateless Token Validation - Validates self-contained tokens like JWTs by checking signature and expiration without database queries.
  • Active Session Lifespan Extensions - Extends session lifespan during active user interaction, logging out only after prolonged inactivity.
10,461 stars·522 forks·0BSD·17 vues

Historique des stars

Graphique de l'historique des stars pour lucia-auth/luciaGraphique de l'historique des stars pour lucia-auth/lucia

Questions fréquentes

Que fait lucia-auth/lucia ?

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.

Quelles sont les fonctionnalités principales de lucia-auth/lucia ?

Les fonctionnalités principales de lucia-auth/lucia sont : Authentication Frameworks, Server-Side Session Stores, Secure Client-Side Session Storages, Cryptographic Random Number Generators, Authentication Libraries, Passwordless Authentication, OAuth 2.0 Authorization Flows, OAuth Provider Integrations.

Quelles sont les alternatives open-source à lucia-auth/lucia ?

Les alternatives open-source à lucia-auth/lucia incluent : teamhanko/hanko — Hanko is an open-source identity provider and customer identity and access management system. It serves as a passkey… volatiletech/authboss — Authboss is a modular authentication framework designed to manage user identity and account orchestration. It provides… supertokens/supertokens-core — SuperTokens Core is an open-source, self-hosted authentication and identity management platform designed for… dwyl/learn-json-web-tokens — This project is a technical tutorial and guide for implementing user identity and session management using JSON Web… digitallyinduced/ihp — ihp is a type-safe web framework and full-stack application orchestrator designed for PostgreSQL. It functions as a… simple-login/app — This project is an email alias management platform and masking proxy designed to protect user privacy. It functions as…

Alternatives open source à Lucia

Projets open source similaires, classés selon le nombre de fonctionnalités partagées avec Lucia.
  • teamhanko/hankoAvatar de teamhanko

    teamhanko/hanko

    8,801Voir sur 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.

    Go2faauthenticationciam
    Voir sur GitHub↗8,801
  • volatiletech/authbossAvatar de volatiletech

    volatiletech/authboss

    4,189Voir sur GitHub↗

    Authboss is a modular authentication framework designed to manage user identity and account orchestration. It provides a comprehensive system for handling user registration, email verification, and the full lifecycle of user profiles. The framework distinguishes itself through a focused suite of security and identity tools, including multi-factor authentication via time-based passwords and SMS, and identity integration with external providers using OAuth1 and OAuth2 protocols. It also includes a dedicated account security manager that implements brute-force protection through credential-based

    Go
    Voir sur GitHub↗4,189
  • supertokens/supertokens-coreAvatar de supertokens

    supertokens/supertokens-core

    14,922Voir sur 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

    Javaauth0authenticationaws-cognito
    Voir sur GitHub↗14,922
  • dwyl/learn-json-web-tokensAvatar de dwyl

    dwyl/learn-json-web-tokens

    4,176Voir sur GitHub↗

    This project is a technical tutorial and guide for implementing user identity and session management using JSON Web Tokens. It focuses on building a secure login system that verifies user identities in web and mobile applications. The material covers the full lifecycle of token-based security, including the issuance and validation of authentication tokens and the management of stateless sessions. It provides instructions on maintaining persistent user sessions through client-side storage and implementing session revocation to invalidate specific or all active tokens. The implementation detai

    JavaScript
    Voir sur GitHub↗4,176
Voir les 30 alternatives à Lucia→