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 authenticationrequire_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)
| File | Size | Uploaded | |
|---|---|---|---|
| fastapi_oidc_simple-0.2.0.tar.gz | 3.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|