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.

Docs: https://caracal.run/sdks/oauth/

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.5.tar.gz (9.2 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.5-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file caracalai_oauth-0.1.5.tar.gz.

File metadata

  • Download URL: caracalai_oauth-0.1.5.tar.gz
  • Upload date:
  • Size: 9.2 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.5.tar.gz
Algorithm Hash digest
SHA256 7ac1e2684bbf94f254ff816e47169896a9e02d9456c1748668035b538a419e74
MD5 01e4d72c57a4bc81a159884b1b5b302d
BLAKE2b-256 4892bfaf4a0472b63d0595af806e4d4357bab143edea0a784bd046de41047eba

See more details on using hashes here.

Provenance

The following attestation bundles were made for caracalai_oauth-0.1.5.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.5-py3-none-any.whl.

File metadata

  • Download URL: caracalai_oauth-0.1.5-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

Hashes for caracalai_oauth-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a3c2d08aabc28d2d6a6b75c0030155abe5d53d247b73e978c94940f41d6389c9
MD5 776d9d288012b9f5a0a772f1e7592bd5
BLAKE2b-256 188fe5ca51bf9c06a6cbe93ccfd9ef7df93ac5e4d34d4808785d2397542648fd

See more details on using hashes here.

Provenance

The following attestation bundles were made for caracalai_oauth-0.1.5-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