Skip to main content

A FastAPI dependency used to verify a user's OAuth access token with JWKS.

Project description

FastAPI OIDC JWKS

A FastAPI dependency used to verify a user's OAuth access token with JWKS.

Installation

pip install fastapi-oidc-jwks

Usage example

from fastapi import FastAPI, APIRouter, Depends
from fastapi_oidc_jwks import AuthDependency

app = FastAPI()

auth = AuthDependency("Your OIDC provider's JWKS URI here")

router = APIRouter(dependencies=[Depends(auth)])

@router.get("/user")
async def handle(user: dict = Depends(auth)):
    return {"user": user}

app.include_router(router)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastapi_oidc_jwks-0.1.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fastapi_oidc_jwks-0.1.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file fastapi_oidc_jwks-0.1.0.tar.gz.

File metadata

  • Download URL: fastapi_oidc_jwks-0.1.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for fastapi_oidc_jwks-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d33d5df4cf88416d07b2a7aae4448b5dd8b91407cd607e042260c408ae561d12
MD5 e869eb8ed524d32eefa83ee175ea7239
BLAKE2b-256 ce49a4fdfd2ce3448aeaad32670babba3d1f086357fcba515ff915276abfb06e

See more details on using hashes here.

File details

Details for the file fastapi_oidc_jwks-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for fastapi_oidc_jwks-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8683588dfd508b42c78cc466a9babeeaac28a56d7da4c00dc5acfa5fcdc0eb94
MD5 bac9adb2402b1c59721c722f13010a42
BLAKE2b-256 7e1a1b057b0ee9d4110d6a1f718439f79f464efbd6142de76428fc813fe02c7f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page