Install & Compatibility
Where this runs
tested against v1.4.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 38.4MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 3.1s · import 0.000s · 39MB
37MB installed
● package 37MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
HTTPSciTokenAuth
✓ from igwn_auth_utils import HTTPSciTokenAuth
✗ from igwn_auth_utils import get_access_token
Session
✓ from igwn_auth_utils import Session
get_scitoken
✓ from igwn_auth_utils import get_scitoken
Fetch an access token using client credentials.
import os
from igwn_auth_utils import get_access_token
token = get_access_token(
token_url=os.environ.get('IGWN_TOKEN_URL', 'https://example.com/token'),
client_id=os.environ.get('IGWN_CLIENT_ID', ''),
client_secret=os.environ.get('IGWN_CLIENT_SECRET', '')
)
print(f'Token: {token[:20]}...')
Upgrade
Version history
1.4.0latest on PyPI · released May 30, 2025
Audit
Dependencies
cryptographyrequiredToken signing and verification
requestsrequiredHTTP requests to auth endpoints
pyjwtrequiredJWT encoding/decoding