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

Uploaded Python 3

File details

Details for the file caracalai_oauth-0.1.6rc3.tar.gz.

File metadata

  • Download URL: caracalai_oauth-0.1.6rc3.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

Hashes for caracalai_oauth-0.1.6rc3.tar.gz
Algorithm Hash digest
SHA256 6992e3f42660a7842914648c848e1b86400ff61297b4d60abbccdcd26c2e5913
MD5 1676d67b6f8e71d1250b785410700ec9
BLAKE2b-256 69a12169f611d8243b119ed455378ce8300c2adfbee6b6a076f68e0b4da78107

See more details on using hashes here.

File details

Details for the file caracalai_oauth-0.1.6rc3-py3-none-any.whl.

File metadata

File hashes

Hashes for caracalai_oauth-0.1.6rc3-py3-none-any.whl
Algorithm Hash digest
SHA256 c2fd276d63adc5b5a261dae81a0d5ee9a6f4bffb69ee5cfbd6a3ba2df81edda7
MD5 6b8de2185aac34e9ae8509fb3f31f3a9
BLAKE2b-256 2e18fb065003c2f822654708f983e561847e8c6d2afb9f8b511fe6b4499aa0ae

See more details on using hashes here.

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