Skip to main content

fastapi-oidc

A lightweight OpenID Connect (OIDC) integration for FastAPI, built on top of Authlib.
It provides simple routes for OIDC login, callback, and user info, along with dependency helpers to protect endpoints and enforce group-based access.


✨ Features

  • 🔑 Easy OIDC integration with FastAPI
  • 🔗 Built-in routes for /auth/login, /auth/callback, and /auth/userinfo
  • 🛡️ Dependency helpers:
    • require_oidc → protect endpoints with authentication
    • require_oidc_group("group") → enforce group-based authorization
  • 🧩 Uses Authlib’s discovery-based OIDC client
  • ⚡ Minimal setup: just plug it into your FastAPI app

Metadata

Release files for fastapi-oidc-simple 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fastapi-oidc-simple 0.2.0
File Size Uploaded
fastapi_oidc_simple-0.2.0.tar.gz 3.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fastapi-oidc-simple 0.2.0
File Interpreter ABI Platform
fastapi_oidc_simple-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.2 kB

Release files / fastapi_oidc_simple-0.2.0.tar.gz

Download URL fastapi_oidc_simple-0.2.0.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
61b973aa28417b4cac7bb279d1a473457c7fc50d75c6ea94ca641956bf8e53bd
BLAKE2b-256 checksum
How to use checksums
97171429f30509305b18f5e796e2a3f7b29dcdbd0cf338e93650cc7bb9186697
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.22

Release files / fastapi_oidc_simple-0.2.0-py3-none-any.whl

Download URL fastapi_oidc_simple-0.2.0-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1ade71a992567b78b18c385cd952545d41ad619437e2abbe27a5af9b636d48ae
BLAKE2b-256 checksum
How to use checksums
b51bd81753c2e0a24e0d27cb488e8070f66275882cae4ff156ccee53b83f1f87
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.22

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page