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.0.6.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.0.6-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fastapi_oidc_jwks-0.0.6.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.0.6.tar.gz
Algorithm Hash digest
SHA256 1c015f1d1773437e5144a8682fd48df32a6a2508d418c5769de2fae722e5ac01
MD5 4e1d034efd69ea5c95f76a60fed6b147
BLAKE2b-256 d5e4f7bff38bc1d00d9c4362f1801b70320d327e1bc0779688fcdc0dfa119005

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastapi_oidc_jwks-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 121602dbb39a15c5994224e6b4d739128fe536261229c87a0ac06a784b24b8d8
MD5 1ebcc3fea28f067201ef97d28e10ecb2
BLAKE2b-256 f45ed6859f73b724b85132524e7503bb2488a14229126b81690e24222d46edb0

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