awesome-repositories.com
المدونة
MCP
awesome-repositories.com

اكتشف أفضل مستودعات المصادر المفتوحة باستخدام بحث مدعوم بالذكاء الاصطناعي.

استكشفعمليات بحث منسقةبدائل مفتوحة المصدربرمجيات ذاتية الاستضافةالمدونةخريطة الموقع
المشروعحولكيفية ترتيب النتائجالصحافةخادم MCP
قانونيالخصوصيةالشروط
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
lucia-auth avatar

lucia-auth/lucia

0
View on GitHub↗
10,461 نجوم·522 تفرعات·0BSD·15 مشاهدات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.

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.

سجل النجوم

مخطط تاريخ النجوم لـ lucia-auth/luciaمخطط تاريخ النجوم لـ lucia-auth/lucia

بحث بالذكاء الاصطناعي

استكشف المزيد من المستودعات الرائعة

صف ما تحتاجه بلغة بسيطة — وسيقوم الذكاء الاصطناعي بترتيب آلاف المشاريع مفتوحة المصدر المنسقة حسب الصلة.

Start searching with AI

الأسئلة الشائعة

ما هي وظيفة 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.

ما هي الميزات الرئيسية لـ lucia-auth/lucia؟

الميزات الرئيسية لـ lucia-auth/lucia هي: 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.

ما هي البدائل مفتوحة المصدر لـ lucia-auth/lucia؟

تشمل البدائل مفتوحة المصدر لـ lucia-auth/lucia: 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…

بدائل مفتوحة المصدر لـ Lucia

مشاريع مفتوحة المصدر مشابهة، مرتبة حسب عدد الميزات المشتركة مع Lucia.
  • teamhanko/hankoالصورة الرمزية لـ teamhanko

    teamhanko/hanko

    8,801عرض على 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
    عرض على GitHub↗8,801
  • volatiletech/authbossالصورة الرمزية لـ volatiletech

    volatiletech/authboss

    4,189عرض على 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
    عرض على GitHub↗4,189
  • supertokens/supertokens-coreالصورة الرمزية لـ supertokens

    supertokens/supertokens-core

    14,922عرض على 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
    عرض على GitHub↗14,922
  • dwyl/learn-json-web-tokensالصورة الرمزية لـ dwyl

    dwyl/learn-json-web-tokens

    4,176عرض على 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
    عرض على GitHub↗4,176
عرض جميع البدائل الـ 30 لـ Lucia→