Skip to main content

fastapi-google-iap

PyPI - Version PyPI - Python Version PyPI - License PyPI - Downloads codecov

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)

Source distribution for fastapi-google-iap 1.0.1
File Size Uploaded
fastapi-google-iap-1.0.1.tar.gz 4.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fastapi-google-iap 1.0.1
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

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