$npx skillfedfor your agent

axioms-fastapi

OAuth2/OIDC authentication and authorization for FastAPI APIs

With conditionsPyPI Python ModulesReleased Nov 2025139.6K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — axioms_fastapi-0.0.13-py3-none-any.whl
v0.0.13 · released 2025-11-15 · Python >=3.8 · 5 runtime deps: fastapi, pyjwt, jwcrypto, python-box, pydantic-settings

Yes, with conditions. The package solves a real problem (JWT validation for FastAPI) with low install friction and no security vulnerabilities. However, it is very new (first release 2025-11-09) with minimal adoption (139638 monthly downloads but only 14 GitHub stars), so production use should be preceded by thorough testing against your specific authorization server and load profile. The MIT license and support for modern Python versions (3.8–3.13) are strengths; the aging maintenance status reflects its infancy, not neglect.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Low install friction with a pure-Python wheel.
  • Maintenance status is aging—the package is only days old (first release 2025-11-09, last commit 2025-11-15), so long-term stability and community adoption remain unproven despite active recent development.

License · maintenance · safety

MIT (permissive) — MIT license is permissive and imposes no restrictions on commercial or private use, modification, or redistribution as long as the license notice is retained.

last release 2025-11-15 (272 days) · last repo commit 2025-11-15 · 14 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 139,638 downloads/mo, #11,294 on PyPI

Verify before relying

pip install axioms-fastapi

from fastapi import FastAPI, Depends
from axioms_fastapi import init_axioms, require_auth

app = FastAPI()
init_axioms(app, AXIOMS_AUDIENCE="api.example.com", AXIOMS_ISS_URL="https://auth.example.com")

@app.get("/protected")
async def protected(payload=Depends(require_auth)):
    return {"user_id": payload.sub}
  • Whether the package has been tested against real-world authorization servers beyond documentation examples
  • Performance characteristics when validating high request volumes or with slow JWKS endpoint responses
  • Whether custom claim namespacing works reliably across different authorization server implementations
Same gist for agents: .md · .json

What it is and what it does

axioms-fastapi is a FastAPI middleware and dependency-injection library that validates JWT access tokens issued by OAuth2/OIDC providers and enforces claim-based authorization rules. It fetches and caches the issuer's public key set (JWKS), validates token signatures and claims (audience, issuer, expiration), and provides decorators to protect routes by requiring specific scopes, roles, or permissions. The package is built on fastapi, pyjwt, jwcrypto, python-box, and pydantic-settings, and it handles the token validation layer so your API can focus on business logic.

The library is designed for resource servers that trust an external authorization provider to issue tokens. It supports flexible configuration (environment variables or direct initialization), custom claim names to work with different providers, and both OR and AND logic for permission checks. It also includes optional middleware for automatic token extraction and validation on all requests, setting the token payload on the request state for access in route handlers.

Use it for

  • Protect FastAPI routes with JWT tokens issued by AWS Cognito, Auth0, or Okta without writing custom validation logic.
  • Enforce role-based access control (RBAC) by checking token claims for specific roles before allowing route access.
  • Implement permission-based authorization for fine-grained resource access (e.g., admin:write, user:read).
  • Validate token signatures and issuer claims to prevent token substitution and algorithm confusion attacks.
  • Build a multi-tenant API where different clients authenticate via a shared OAuth2 provider and are isolated by audience claim.

Worth the install?

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

With conditions

Yes, with conditions.

The package solves a real problem (JWT validation for FastAPI) with low install friction and no security vulnerabilities. However, it is very new (first release 2025-11-09) with minimal adoption (139638 monthly downloads but only 14 GitHub stars), so production use should be preceded by thorough testing against your specific authorization server and load profile. The MIT license and support for modern Python versions (3.8–3.13) are strengths; the aging maintenance status reflects its infancy, not neglect.

Install

axioms-fastapi on PyPI

Before you install

Low install friction with a pure-Python wheel. Maintenance status is aging—the package is only days old (first release 2025-11-09, last commit 2025-11-15), so long-term stability and community adoption remain unproven despite active recent development.

License in practice

MIT license is permissive and imposes no restrictions on commercial or private use, modification, or redistribution as long as the license notice is retained.

Quickstart

pip install axioms-fastapi

from fastapi import FastAPI, Depends
from axioms_fastapi import init_axioms, require_auth

app = FastAPI()
init_axioms(app, AXIOMS_AUDIENCE="api.example.com", AXIOMS_ISS_URL="https://auth.example.com")

@app.get("/protected")
async def protected(payload=Depends(require_auth)):
    return {"user_id": payload.sub}

Verify before relying

  • Whether the package has been tested against real-world authorization servers beyond documentation examples
  • Performance characteristics when validating high request volumes or with slow JWKS endpoint responses
  • Whether custom claim namespacing works reliably across different authorization server implementations

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.8
Install frictionLow. Pure-Python wheel
Runtime dependencies
5 packages
fastapipyjwtjwcryptopython-boxpydantic-settings
MaintenanceAging 272 days since the last release
Last repo commit
First released
Downloads139,638 / month, #11,294 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaFramework :: FastAPIIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: SecurityTopic :: Software Development :: Libraries :: Python Modules

Evidence: axioms_fastapi-0.0.13-py3-none-any.whl

Tags

Capabilities
fastapi oauth2 jwt authenticationfastapi oidc token validationfastapi jwt authorizationfastapi cognito auth0 integrationfastapi role-based access controlfastapi permission middlewarefastapi jwt scope validation
Topics
oauth2-oidcjwt-validationfastapi-middleware
PyPI keywords
fastapioauth2oidcjwtauthenticationauthorizationaxiomssecurity

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 › “fastapi oidc token validation”

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

More Python Modules packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
PyYAML Worth it
PyPI · Python Modules · released Sep 2025

PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.

MITcompiled wheel · 3.8+
1.2Bdownloads / mo
pydantic Worth it
PyPI · Python Modules · released May 2026

Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.

MITpure Python · 3.9+
1.1Bdownloads / mo
annotated-types Worth it
PyPI · Python Modules · released Jul 2026

Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.

Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…

MITpure Python · 3.10+
871.3Mdownloads / mo
typing-inspection Worth it
PyPI · Python Modules · released Aug 2026

Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.

MITpure Python · 3.10+
783.0Mdownloads / mo

See also fastapi-cloudauth · fastapi-keycloak-middleware · sanic-jwt · fastapi-cognito · fastapi-auth0 · fastapi-azure-auth · propelauth-fastapi · scitokens · auth0-api-python · agilicus