Caracal RFC 8693 token exchange client with safe in-memory caching
Project description
Caracal OAuth for Python
Python RFC 8693 token exchange client for Caracal STS.
from caracalai_oauth import ExchangeOptions, OAuthClient
client = OAuthClient("https://sts.example.com", "zone1", "app1")
token = await client.exchange(
subject_token,
"resource://api",
ExchangeOptions(client_secret="client-secret", scopes=["read"]),
)
Successful responses are validated before caching. Cache keys isolate subject tokens, actor tokens, session/delegation context, scopes, TTL, and client authentication context. The default cache is in-memory and process-local.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file caracalai_oauth-0.1.6rc2.tar.gz.
File metadata
- Download URL: caracalai_oauth-0.1.6rc2.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fe6681e614b230b957d1e98ac0b2eb62f6d2c98f12f42ed4176891edec53f5b4
|
|
| MD5 |
3c75f62e272abf9e66599c5173352fb8
|
|
| BLAKE2b-256 |
31b9d67b0405fd06c53f751341587581834fae2b36447b52e427239bba1272b5
|
File details
Details for the file caracalai_oauth-0.1.6rc2-py3-none-any.whl.
File metadata
- Download URL: caracalai_oauth-0.1.6rc2-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a58885b09c4ff66e4d4695396c52f9db2b5851e9fa3eb50f57a67bfcb54eca70
|
|
| MD5 |
bbc4abcad17bcd29154ae15c890212c2
|
|
| BLAKE2b-256 |
647f3d1ee44a02a35263d73f45ba04e41946642dc8d3bfa531bea07f56141117
|