MCPcopy Index your code
hub / github.com/fastapi-users/fastapi-users

github.com/fastapi-users/fastapi-users @v15.0.5

Chat with this repo
repository ↗ · DeepWiki ↗ · release v15.0.5 ↗ · + Follow
775 symbols 2,610 edges 88 files 71 documented · 9% updated 14d agov15.0.5 · 2026-03-27★ 6,1824 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

FastAPI Users

FastAPI Users

<em>Ready-to-use and customizable users management for FastAPI </em>

[!NOTE] This project is now in maintenance mode. While we'll continue to provide security updates and dependency maintenance, no new features will be added. We encourage you to explore the project and use it as-is, knowing it will remain stable and secure.

We're currently working on a new Python authentication toolkit that will ultimately supersede FastAPI Users. Stay tuned for updates!

build codecov PyPI version Downloads

All Contributors


Documentation: https://fastapi-users.github.io/fastapi-users/

Source Code: https://github.com/fastapi-users/fastapi-users


Add quickly a registration and authentication system to your FastAPI project. FastAPI Users is designed to be as customizable and adaptable as possible.

Features

  • [x] Extensible base user model
  • [x] Ready-to-use register, login, reset password and verify e-mail routes
  • [x] Ready-to-use social OAuth2 login flow
  • [x] Dependency callables to inject current user in route
  • [x] Pluggable password validation
  • [x] Customizable database backend
  • [x] Multiple customizable authentication backends
    • [x] Transports: Authorization header, Cookie
    • [x] Strategies: JWT, Database, Redis
  • [x] Full OpenAPI schema support, even with several authentication backends

Contributors and sponsors ✨☕️

Thanks goes to these wonderful people (emoji key):

François Voron François Voron 🚧 Paolo Dina Paolo Dina 💵 💻 Dmytro Ohorodnik Dmytro Ohorodnik 🐛 Matthew D. Scholefield Matthew D. Scholefield 🐛 💻 roywes roywes 🐛 💻 Satwik Kansal Satwik Kansal 📖 Edd Salkield Edd Salkield 💻 📖
mark-todd mark-todd 💻 📖 lill74 lill74 🐛 💻 📖 SelfhostedPro SelfhostedPro 🛡️ 💻 Oskar Gmerek Oskar Gmerek 📖 Martin Collado Martin Collado 🐛 💻 Eric Lopes Eric Lopes 📖 🛡️ Beau Breon Beau Breon 💻
Niyas Mohammed Niyas Mohammed 📖 prostomarkeloff prostomarkeloff 📖 💻 Marius Mézerette Marius Mézerette 🐛 🤔 Nickolas Grigoriadis Nickolas Grigoriadis 🐛 Open Data Coder Open Data Coder 🤔 Mohammed Alshehri Mohammed Alshehri 🤔 Tyler Renelle Tyler Renelle 🤔
collerek collerek 💻 Robert Bracco Robert Bracco 💵 Augusto Herrmann Augusto Herrmann 📖 Smithybrewer Smithybrewer 🐛 silllli silllli 📖 alexferrari88 alexferrari88 💵 sandalwoodbox sandalwoodbox 🐛 📖

Core symbols most depended-on inside this repo

current_user
called by 20
fastapi_users/authentication/authenticator.py
generate_state_token
called by 17
fastapi_users/router/oauth.py
get
called by 15
fastapi_users/db/base.py
hash
called by 11
fastapi_users/password.py
verify
called by 11
fastapi_users/manager.py
decode_jwt
called by 9
fastapi_users/jwt.py
reset_password
called by 9
fastapi_users/manager.py
generate_jwt
called by 8
fastapi_users/jwt.py

Shape

Method 396
Function 192
Class 153
Route 34

Languages

Python100%

Modules by API surface

tests/test_fastapi_users.py77 symbols
tests/test_manager.py71 symbols
tests/test_router_users.py65 symbols
tests/conftest.py62 symbols
tests/test_router_oauth.py38 symbols
fastapi_users/manager.py31 symbols
tests/test_authentication_authenticator.py26 symbols
tests/test_openapi.py22 symbols
tests/test_router_auth.py18 symbols
tests/test_router_verify.py16 symbols
tests/test_router_reset.py16 symbols
tests/test_authentication_strategy_db.py16 symbols

Dependencies from manifests, versioned

asgi_lifespan
httpx
httpx-oauth
markdown-include
mike
mkdocs-mermaid2-plugin
mypy
pygments
pymdown-extensions

Datastores touched

(mongodb)Database · 1 repos

For agents

$ claude mcp add fastapi-users \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact