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.

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.5.tar.gz (3.2 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.5-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fastapi_oidc_jwks-0.0.5.tar.gz
  • Upload date:
  • Size: 3.2 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.5.tar.gz
Algorithm Hash digest
SHA256 5e2066453ca494198ebb7dfd1c03c89109631b1e9e004581b0edce940764d92f
MD5 c18d72aa5ceadffe4ab4dc8aad99de8f
BLAKE2b-256 b76f651f657db43ecbcd5670d64e96882f6bfa9143ef6df4c22858c420c4c4fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastapi_oidc_jwks-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 28a1c607e07dbbcc69ebb654e4594fdd8816c14a57e4ce5180b6d298d9e29ab8
MD5 bf2c7d1839955aa1b46d615b7ef87444
BLAKE2b-256 38188b3cf3de6757ea6d8bd3d4bd5eac43416214947b65e8989afa4e7edf919f

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