awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
fastapi-users avatar

fastapi-users/fastapi-users

0
View on GitHub↗
6,172 星标·507 分支·Python·MIT·3 次浏览fastapi-users.github.io/fastapi-users↗

Fastapi Users

FastAPI Users is a ready-to-use authentication library for FastAPI applications that handles user registration, login, password reset, email verification, and profile retrieval with minimal configuration. It provides a complete authentication system built around pluggable backends and transports, supporting JWT tokens, database sessions, and Redis-based token storage that can be combined in a single route.

The library distinguishes itself through its modular architecture, offering router-based module composition that organizes authentication flows as independent FastAPI routers for registration, login, verification, and password reset. It supports multiple authentication methods simultaneously, including email-password login, OAuth2 social login through providers like Google and GitHub, and token-based email verification. The system provides dependency-injected authentication flows that chain multiple backends and transports, along with configurable password strength validation hooks that enforce security policies during registration or password changes.

For data persistence, FastAPI Users provides an abstract async storage interface with concrete implementations for SQLAlchemy (relational databases) and Beanie ODM (MongoDB), allowing developers to store user accounts and profiles in either SQL or document databases. The library generates complete OpenAPI documentation for all authentication endpoints, even when multiple backends are configured, and supports both header and cookie transport methods for accepting credentials.

Features

  • User Authentication - Ready-to-use user registration, login, password reset, email verification, and profile retrieval for FastAPI applications.
  • FastAPI Authentication Modules - Adding login, registration, password reset, and email verification to a FastAPI application with minimal code.
  • Authenticated User Injection - Injects the authenticated user model into route handlers via FastAPI dependency injection.
  • JWT Tokens - Issuing and validating JSON Web Tokens for stateless API authentication in a FastAPI backend.
  • Async User Storage Abstractions - Provides an abstract async storage interface with SQLAlchemy and Beanie ODM implementations for user data.
  • Pluggable Authentication Backends - Supports multiple authentication backends (JWT, database, Redis) and transports (header, cookie) in a single route.
  • JWT Authentication - Issues and validates JSON Web Tokens for stateless user authentication in FastAPI routes.
  • Multi-Method API Authentication - Supports several authentication methods (JWT, database session, Redis token) and transports (header, cookie) simultaneously.
  • Password Authentication - Verifies a user's email and password against stored credentials and issues a session token.
  • Session Token Issuance - Generates and validates authentication tokens stored in a JWT, database, or Redis backend.
  • User Account Registrations - Creates a new user account with email and password, handling validation and storage.
  • Email-Password Registrations - Creates a user account with email and password, storing credentials for future authentication.
  • Credential Authentications - Verifies credentials on login and issues a token or session for subsequent requests.
  • Authenticated User Injectors - Injects the authenticated user into route handlers through a FastAPI dependency callable.
  • SQL or MongoDB User Storages - Persists user accounts and profiles in a relational database via SQLAlchemy or a document store via Beanie ODM.
  • MongoDB User Storages - Stores user records in MongoDB documents using the Beanie ODM for FastAPI applications.
  • Authentication Endpoint Documenters - Generates complete OpenAPI docs for all authentication endpoints, even with multiple backends.
  • Header and Cookie Credential Acceptors - Accepts credentials from an Authorization header or a cookie, supporting multiple transport methods.
  • Email Verification Flows - Confirms email ownership by sending a signed token link that the user must visit to activate their account.
  • Password Complexity Validation - Validates password complexity at registration and change time using configurable callbacks.
  • Password Strength Validators - Validating password strength against configurable rules during registration or password change.
  • Social Login Providers - Authenticates a user through a third-party provider such as Google or GitHub using the OAuth2 flow.
  • Social Login Integrations - Redirects a user to an external provider and creates or links an account on successful authorization.
  • Password Resets - Sends a password reset link to the user's email and allows them to set a new password.
  • OAuth Provider Adapters - Integrates third-party login providers through a common OAuth adapter interface.
  • Authentication Flow Routers - Organizes authentication flows as independent FastAPI routers that can be mounted or customized separately.
  • Authentication and Authorization - Full-featured account management and authentication system.

Star 历史

fastapi-users/fastapi-users 的 Star 历史图表fastapi-users/fastapi-users 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

Fastapi Users 的开源替代方案

相似的开源项目,按与 Fastapi Users 的功能重合度排序。
  • teamhanko/hankoteamhanko 的头像

    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/authbossvolatiletech 的头像

    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
  • simple-login/appsimple-login 的头像

    simple-login/app

    6,735在 GitHub 上查看↗

    This project is an email alias management platform and masking proxy designed to protect user privacy. It functions as a gateway that creates unique email addresses to hide a user's primary mailbox, forwarding incoming messages while routing outbound replies through a reverse-proxy to maintain sender anonymity. The system distinguishes itself through advanced domain and privacy controls, including the ability to link personal domains via DNS for branded aliases and catch-all routing. It further secures communications via a PGP encryption gateway that encrypts forwarded email content using pub

    Pythonaliasesemailflask
    在 GitHub 上查看↗6,735
  • gofiber/recipesgofiber 的头像

    gofiber/recipes

    3,427在 GitHub 上查看↗

    This project is a comprehensive library of reference implementations and patterns for building web applications using the Go Fiber framework. It provides curated templates and implementation guides for creating REST APIs, web servers, and structured backend services. The repository serves as a practical resource for applying architectural patterns, including Clean and Hexagonal architectures, as well as port-and-adapter decoupling. It offers detailed examples for integrating common web features such as OAuth2 authentication, JWT verification, WebSockets for real-time communication, and server

    Gocookbookexamplesfiber
    在 GitHub 上查看↗3,427
查看 Fastapi Users 的所有 30 个替代方案→

常见问题解答

fastapi-users/fastapi-users 是做什么的?

FastAPI Users is a ready-to-use authentication library for FastAPI applications that handles user registration, login, password reset, email verification, and profile retrieval with minimal configuration. It provides a complete authentication system built around pluggable backends and transports, supporting JWT tokens, database sessions, and Redis-based token storage that can be combined in a single route.

fastapi-users/fastapi-users 的主要功能有哪些?

fastapi-users/fastapi-users 的主要功能包括:User Authentication, FastAPI Authentication Modules, Authenticated User Injection, JWT Tokens, Async User Storage Abstractions, Pluggable Authentication Backends, JWT Authentication, Multi-Method API Authentication。

fastapi-users/fastapi-users 有哪些开源替代品?

fastapi-users/fastapi-users 的开源替代品包括: 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… simple-login/app — This project is an email alias management platform and masking proxy designed to protect user privacy. It functions as… gofiber/recipes — This project is a comprehensive library of reference implementations and patterns for building web applications using… santinic/how2 — how2 is a terminal-based tool that translates plain-English questions into shell commands using AI and StackOverflow… gtsteffaniak/filebrowser — FileBrowser is an open-source, self-hosted file management interface that runs as a single binary with no external…