$npx skillfedfor your agent

fastapi-auth0

Easy auth0.com integration for FastAPI

With conditionsPyPI WWW/HTTPReleased Sep 2023130.4K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — fastapi_auth0-0.5.0-py3-none-any.whl
v0.5.0 · released 2023-09-17 · Python >=3.7 · 2 runtime deps: fastapi, python-jose

Yes, if you are already committed to Auth0 and FastAPI and need quick OAuth2 integration with Swagger UI support. No, if you require active maintenance, recent bug fixes, or compatibility with the latest FastAPI versions—the package has been dormant since late 2023 and may lag behind framework updates. Consider it a stable but unsupported tool suitable for mature, low-change applications.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Auth0 tenant must be configured with correct scopes and callback URL (http://localhost:8000/docs/oauth2-redirect for Swagger UI).
  • Email field requires 'openid profile email' permission and 'Add email to access token' rule in Auth0.
  • Low install friction with only two runtime dependencies (fastapi and python-jose).

License · maintenance · safety

MIT (permissive) — MIT license is permissive, allowing free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.

last release 2023-09-17 (1062 days) · last repo commit 2024-12-16 · 236 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 130,397 downloads/mo, #11,642 on PyPI

Verify before relying

pip install fastapi-auth0

from fastapi import FastAPI, Depends, Security
from fastapi_auth0 import Auth0, Auth0User

auth = Auth0(domain='your-tenant.auth0.com', api_audience='your-api-identifier', scopes={'read:blabla': ''})
app = FastAPI()

@app.get("/secure", dependencies=[Depends(auth.implicit_scheme)])
def get_secure(user: Auth0User = Security(auth.get_user, scopes=['read:blabla'])):
    return {"message": f"{user}"}
  • Whether the package remains compatible with current FastAPI and Auth0 API versions given its dormant maintenance status
  • Performance characteristics when handling high volumes of concurrent authentication requests
  • Whether email field extraction works reliably across all Auth0 tenant configurations
Same gist for agents: .md · .json

What it is and what it does

fastapi-auth0 is a lightweight wrapper that connects FastAPI applications to Auth0's identity platform. It handles OAuth2 implicit flow authentication and automatically generates Swagger UI login controls, so users can sign in via social providers directly from the API documentation without requiring custom frontend code.

The package provides an Auth0 class that manages authentication state and a Security dependency for protecting routes. It extracts user identity, permissions, and optionally email from Auth0 tokens and makes them available as Auth0User objects in your route handlers. Setup requires configuring your Auth0 tenant with the correct scopes and callback URLs, but once done, adding authentication to a route is a single-line dependency injection.

Use it for

  • Protect FastAPI endpoints with Auth0 authentication and scope-based authorization without writing custom OAuth2 logic.
  • Enable users to log in via social providers directly from Swagger UI interactive documentation.
  • Extract user identity and permissions from Auth0 tokens to enforce fine-grained access control in API routes.
  • Build applications where Auth0 manages user identity and role assignment across organizations.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you are already committed to Auth0 and FastAPI and need quick OAuth2 integration with Swagger UI support.

No, if you require active maintenance, recent bug fixes, or compatibility with the latest FastAPI versions—the package has been dormant since late 2023 and may lag behind framework updates. Consider it a stable but unsupported tool suitable for mature, low-change applications.

Install

fastapi-auth0 on PyPI

Before you install

Low install friction with only two runtime dependencies (fastapi and python-jose). However, the package is dormant—last release was 2023-09-17 and no commits since 2024-12-16, so maintenance is minimal and bug fixes or compatibility updates are unlikely.

Auth0 tenant must be configured with correct scopes and callback URL (http://localhost:8000/docs/oauth2-redirect for Swagger UI). Email field requires 'openid profile email' permission and 'Add email to access token' rule in Auth0.

License in practice

MIT license is permissive, allowing free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects.

Quickstart

pip install fastapi-auth0

from fastapi import FastAPI, Depends, Security
from fastapi_auth0 import Auth0, Auth0User

auth = Auth0(domain='your-tenant.auth0.com', api_audience='your-api-identifier', scopes={'read:blabla': ''})
app = FastAPI()

@app.get("/secure", dependencies=[Depends(auth.implicit_scheme)])
def get_secure(user: Auth0User = Security(auth.get_user, scopes=['read:blabla'])):
    return {"message": f"{user}"}

Verify before relying

  • Whether the package remains compatible with current FastAPI and Auth0 API versions given its dormant maintenance status
  • Performance characteristics when handling high volumes of concurrent authentication requests
  • Whether email field extraction works reliably across all Auth0 tenant configurations

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.7
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
fastapipython-jose
MaintenanceDormant 1,062 days since the last release
Last repo commit
First released
Downloads130,397 / month, #11,642 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14

Evidence: fastapi_auth0-0.5.0-py3-none-any.whl

Tags

Capabilities
auth0 fastapi integrationoauth2 implicit flow fastapifastapi authentication auth0social login fastapiswagger ui oauth2 fastapifastapi auth0 user management
Topics
oauth2identity-management

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “auth0 fastapi integration”

  • fastapi-auth0Integrates Auth0 authentication into FastAPI applications with…
  • fastapi-cloudauthIntegrates FastAPI applications with cloud authentication services…
  • axioms-fastapiAdds OAuth2/OIDC JWT token validation and claim-based authorization…

Give your agent the search over MCP, or paste the wish link into any chat.

More WWW/HTTP packages

urllib3 Worth it
PyPI · Libraries · released May 2026

urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.

MITpure Python · 3.10+
1.8Bdownloads / mo
requests Worth it
PyPI · Libraries · released May 2026

Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.

Apache-2.0pure Python · 3.10+
1.8Bdownloads / mo
h11 With conditions
PyPI · WWW/HTTP · released Apr 2025

h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.

MITpure Python · 3.8+aging
894.9Mdownloads / mo
httpx Worth it
PyPI · WWW/HTTP · released Dec 2024

HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.

Install it if you are building new projects or modernizing existing ones that rely on HTTP.

BSD-3-Clausepure Python · 3.8+
797.0Mdownloads / mo
httpcore With conditions
PyPI · WWW/HTTP · released Apr 2025

A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.

BSD-3-Clausepure Python · 3.8+aging
783.6Mdownloads / mo
aiohttp Worth it
PyPI · WWW/HTTP · released Jul 2026

aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.

Install it if you need async HTTP client or server capabilities in asyncio-based applications.

permissive licensecompiled wheel · 3.10+
643.6Mdownloads / mo

See also auth0-api-python · fastapi-cloudauth · fastapi-login · fastapi-sso · axioms-fastapi · fastapi-azure-auth · propelauth-fastapi · fastapi-users · auth0-python · fastapi-offline