For bibliothèque d'authentification multi-facteurs, the strongest matches are google/google-authenticator (This Java library implements TOTP and HOTP generation and), lucia-auth/lucia (Lucia is an authentication library that includes built-in TOTP) and supertokens/supertokens-core (SuperTokens is a self-hosted authentication platform with a dedicated). pennersr/django-allauth and steveiliop56/tinyauth round out the shortlist. Each is ranked by relevance to your query, popularity and recent activity.
Implémentez une authentification multifacteur sécurisée et une vérification par mot de passe à usage unique (TOTP) dans vos services backend.
This is a two-factor authentication library and open-source multi-factor authentication implementation. It provides a suite of tools for implementing security workflows that require a second layer of verification beyond standard credentials. The project implements both time-based one-time passwords and HMAC-based one-time passwords. It includes utilities for generating these codes based on shared secrets and counters, following industry standards such as RFC 6238. The library covers cryptographic primitives including Base32 secret key encoding, dynamic truncation extraction, and symmetric ke
This Java library implements TOTP and HOTP generation and validation according to RFC 6238, which directly fits your need for integrating multi-factor authentication into a backend application, though the provided evidence does not explicitly confirm backup codes or rate-limiting features.
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 an authentication library that includes built-in TOTP two-factor authentication and recovery code generation, exactly matching your need for a backend-integrated MFA solution with TOTP and recovery options.
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 is a self-hosted authentication platform with a dedicated recipe for TOTP-based multi-factor authentication, offering QR provisioning, backup codes, and configurable OTP settings directly via its API and SDKs for backend integration.
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 comprehensive Django authentication framework that includes two-factor authentication (with TOTP support) and covers rate limiting and brute-force protection, making it a solid choice for adding MFA to a Django backend, though it is broader than a focused TOTP library.
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 an authentication middleware service that supports TOTP-based two-factor authentication, making it a viable option for integrating MFA into a backend via a reverse proxy model, though it is a broader identity provider rather than a focused TOTP library.
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 identity and access management server with built-in multi‑factor authentication support, including TOTP generation, validation, and QR code provisioning, making it a deployable service for adding OTP‑based second factor to backend applications.
A One Time Password Authentication package, compatible with Google Authenticator.
This PHP package provides TOTP generation and validation compatible with Google Authenticator, making it a straightforward library for integrating OTP-based multi-factor authentication into your backend application; it covers the core TOTP features but may require additional implementation for backup codes or rate limiting.
This project is a Pluggable Authentication Module for Linux systems that enforces multi-factor identity verification. It integrates directly into the system authentication stack to require time-based one-time passwords alongside standard user credentials, providing a mechanism to secure local and remote shell access. The module distinguishes itself through its implementation of the time-based one-time password algorithm, which includes built-in support for clock-skew compensation to account for time discrepancies between servers and user devices. It manages individual user secret keys through
This is a PAM module that provides TOTP-based two-factor authentication for Linux systems, integrating directly into the system-level authentication flow — it is a genuine TOTP library but is limited to PAM environments and lacks built-in backup codes or rate limiting.