fastapi-google-iap
A FastAPI plugin for Google Cloud Identity-Aware Proxy (IAP) authentication.
Installation
pip install fastapi-google-iap
Usage
from fastapi import FastAPI
from fastapi_google_iap import GoogleIapMiddleware
app = FastAPI()
app.use_middleware(
GoogleIapMiddleware,
audience="/projects/999999999999/apps/example-project",
unprotected_routes=["/healthz"],
restrict_to_domains=["example.com"],
)
License
This project is licensed under the terms of the MIT license.
Metadata
Release files for fastapi-google-iap 1.0.1
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-google-iap-1.0.1.tar.gz | 4.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fastapi_google_iap-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.3 kB
Release files / fastapi-google-iap-1.0.1.tar.gz
| Download URL | fastapi-google-iap-1.0.1.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
15df6fc3c667beda11b22e1f89c841d985bccbd34bcfb71ed02d41a845452324
|
|
BLAKE2b-256 checksum How to use checksums |
684064cd8b00b41f0e0644d2c9b81efa5e2582f463887fe2caeb15d94889867f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Release files / fastapi_google_iap-1.0.1-py3-none-any.whl
| Download URL | fastapi_google_iap-1.0.1-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b919fdd3f5bd29606db2b8f0ca8efabb59f5796319cce9799512d0583d140d65
|
|
BLAKE2b-256 checksum How to use checksums |
97e0149c7394d9b1a4d69e9cfa6a8b042dd7e5d356097430035a3ac46f498827
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|