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
from os import getenv

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: fastapi_oidc_jwks-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 b9b1be5b8b7a81d681787d68f25f626d5657c4a4882d31ac0ac53862f88b5d9e
MD5 5682972a75279089a55b91738bd8c0ff
BLAKE2b-256 3619e8e854a94681cd344f560d730d9e09e1ae992e09ff9f7404744039bfc052

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastapi_oidc_jwks-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c53d6d42e2f5ff8b4a43f0c144708379755e91d0dcffa942b0ed1af420422d99
MD5 1f64498da1707e571a08ded522934f95
BLAKE2b-256 9574a72e9b289526d602140af7afa8a6a8c3cda8475be80aeee432dfa50ad5ca

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