Skip to content

A FastAPI plugin for Google Cloud Identity-Aware Proxy (IAP) authentication.

License

Notifications You must be signed in to change notification settings

asai95/fastapi-google-iap

Repository files navigation

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.

About

A FastAPI plugin for Google Cloud Identity-Aware Proxy (IAP) authentication.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages