https://github.com/asai95/fastapi-google-iap
A FastAPI plugin for Google Cloud Identity-Aware Proxy (IAP) authentication.
https://github.com/asai95/fastapi-google-iap
fastapi iap middleware
Last synced: 5 months ago
JSON representation
A FastAPI plugin for Google Cloud Identity-Aware Proxy (IAP) authentication.
- Host: GitHub
- URL: https://github.com/asai95/fastapi-google-iap
- Owner: asai95
- License: mit
- Created: 2023-12-11T14:36:37.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-12-11T16:58:06.000Z (over 2 years ago)
- Last Synced: 2025-10-26T23:56:12.808Z (8 months ago)
- Topics: fastapi, iap, middleware
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fastapi-google-iap

[](https://pypi.org/project/fastapi-google-iap/)
[](https://pypi.org/project/fastapi-google-iap/)
[](https://pypi.org/project/fastapi-google-iap/)
[](https://codecov.io/gh/asai95/fastapi-google-iap)
A FastAPI plugin for Google Cloud Identity-Aware Proxy (IAP) authentication.
## Installation
```bash
pip install fastapi-google-iap
```
## Usage
```python
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.