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

Uploaded Python 3

File details

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

File metadata

  • Download URL: fastapi_oidc_jwks-0.0.4.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.4.tar.gz
Algorithm Hash digest
SHA256 0dd2f658bb6401bd9b02471ef0278a1f4737bd09e5f138d1c1d60ee93eb4d8c6
MD5 c8d612c3b88a09b45a8ef725bd4cb73f
BLAKE2b-256 6ef31d2f453bdcc1f2e4ad531c4e3075481b44f26d42b8b2316bee4ae3b070fc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastapi_oidc_jwks-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ced382b2ba2e7cbde29c46ddf41b7b84bd6c11230d63c36179115d2eb6387019
MD5 b037947376146ffe9f52552b92340aab
BLAKE2b-256 2c96dab08e0c7ef3372e0c5f650534d3f10c27e582a7a9372d3106924545e7d3

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