Skip to main content

Library of common utils for interacting with Identity-Aware Proxies

Project description

IAP Toolkit

A library of utils to ease programmatic authentication with Google IAP (and ideally other IAPs in future).

Configuration & Env Vars

Env Var Default Type Description
KVC_LOG_FORMAT "%(asctime)s - [%(levelname)s] - %(name)s - %(message)s" String Sets log format for internal logger
KVC_LOG_DATEFMT "%Y-%m-%d %H:%M:%S" String Sets log datetime format for internal logger
IAPTOOLKIT_USE_AUTH_HEADER False Boolean If False, only adds Google IAP auth tokens to the Proxy-Authorization header. If True, adds tokens in the Authorization header if available/unused, falling back to the Proxy-Authorization header if needed.
IAPTOOLKIT_PERSISTENT_DATASTORE_ENABLED False Boolean If true, the TOML-backed datastore for tokens is enabled.
IAPTOOLKIT_PERSISTENT_DATASTORE_PATH "~/.iaptoolkit" String Path to dir where TOML-backed datastore
IAPTOOLKIT_PERSISTENT_DATASTORE_USERNAME "user.toml" String Filename for TOML-backed datastore
IAPTOOLKIT_CONFIG_VERSION False Boolean (Unused) Schema version for token storage
GOOGLE_IAP_CLIENT_ID None String #TODO
GOOGLE_CLIENT_ID None String #TODO
GOOGLE_CLIENT_SECRET None String #TODO

Disclaimer

This project is not affiliated with Google. No trademark infringement intended.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iaptoolkit-0.0.2.tar.gz (8.5 kB view hashes)

Uploaded Source

Built Distribution

iaptoolkit-0.0.2-py3-none-any.whl (11.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page