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

Uploaded Python 3

File details

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

File metadata

  • Download URL: fastapi_oidc_jwks-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 b6c0b93067b5744305fc3abc73711b53a631a37d1b677dc26139c5fb72a05801
MD5 944817047339f75a354de973db2c3bdc
BLAKE2b-256 93fb430fcd24de4445d29521a7b3f10f099f0eb747b3a33182d6fb89b5d4d36d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastapi_oidc_jwks-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b6d4cd803277209a6b3734316d267239ea4fe0c16fe0055d8f7098df0436c71b
MD5 be907ef4ee4281aa8ecc07a877407170
BLAKE2b-256 2abfdf5b7e8fd9505f1e3813b8e71c58f1dbefe2632f88ea4c5af4ff207e2c22

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