Skip to main content

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


Download files

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

Source Distribution

caracalai_oauth-0.1.3rc1.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

caracalai_oauth-0.1.3rc1-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file caracalai_oauth-0.1.3rc1.tar.gz.

File metadata

  • Download URL: caracalai_oauth-0.1.3rc1.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for caracalai_oauth-0.1.3rc1.tar.gz
Algorithm Hash digest
SHA256 0485657938b1f4198e7a5b98bede805279edaf6fb8a899d3af8c78a48356a2a0
MD5 ac37eb0dd4bddd9f979043c84071fa3b
BLAKE2b-256 84089abe327b5c8cc2e660be57b3b448d9a99a4c778410d12ac825f77d553e38

See more details on using hashes here.

Provenance

The following attestation bundles were made for caracalai_oauth-0.1.3rc1.tar.gz:

Publisher: publishPypi.yml on Garudex-Labs/caracal

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file caracalai_oauth-0.1.3rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for caracalai_oauth-0.1.3rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 0a72df1ea33f197cb26dc727c3900b9281a7803a98a193de66e94095623f8705
MD5 86626818ba8a12ad393ad4c8b7ba8cd7
BLAKE2b-256 ed97c914fd83dafed9daed64c7804dd28628c896fc6b2bc2f124a7cc9035140b

See more details on using hashes here.

Provenance

The following attestation bundles were made for caracalai_oauth-0.1.3rc1-py3-none-any.whl:

Publisher: publishPypi.yml on Garudex-Labs/caracal

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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