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
Release history Release notifications | RSS feed
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.5.tar.gz
(8.8 kB
view hashes)
Built Distribution
iaptoolkit-0.0.5-py3-none-any.whl
(11.6 kB
view hashes)
Close
Hashes for iaptoolkit-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a0839bf12b12ca2b9e084d995702b388ddee3590bca98dd7a97b1782ab36c25 |
|
MD5 | 4b51219997732f45af772e09e1874efb |
|
BLAKE2b-256 | 0576f3471aad1a52b4b55d26e7d2e95d9f3553993c32c623ba981d5aa51b1cf7 |