Skip to main content

Framework-neutral mandate verification for Caracal-issued JWTs

Project description

caracalai-verify

Transport-neutral MCP authentication for Caracal-issued JWTs.

Part of Caracal: the identity and authorization layer for AI agents - short-lived, policy-approved authority instead of credentials.

Install

pip install caracalai-verify

Verify a mandate

from caracalai_revocation import InMemoryRevocationStore
from caracalai_verify import AuthOptions, create_mandate_verifier

verifier = create_mandate_verifier(
    AuthOptions(
        issuer="https://sts.example.com",
        audience="https://api.example.com",
        expected_zone_id="zone_prod",
        revocations=InMemoryRevocationStore(),
    )
)

result = await verifier.authorization(
    request.headers.get("authorization"),
    required_scopes=["tickets:read"],
    required_targets=["https://api.example.com/tickets"],
)

Links

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_verify-0.2.0rc1.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

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

caracalai_verify-0.2.0rc1-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file caracalai_verify-0.2.0rc1.tar.gz.

File metadata

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

File hashes

Hashes for caracalai_verify-0.2.0rc1.tar.gz
Algorithm Hash digest
SHA256 a6a675cae1ca0fdcad56aa9be985acf62138c24d509ca67adc17f8afffdadb24
MD5 0ce05f83a159a9bc2649b0e2957ff3f7
BLAKE2b-256 2cea9433e8321d97771cb313bda10dcf189e80dd6610700af162b650f18ce60a

See more details on using hashes here.

File details

Details for the file caracalai_verify-0.2.0rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for caracalai_verify-0.2.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 ff38fb4bfdfe612ef0aa56eba16b1e56a825f57b819b84b1f6c93c4a135efeac
MD5 952e048aaba68687f1d1ba0cf6316501
BLAKE2b-256 b55c92f5b154d3b5baeb84d4f7b2165c76e4140edb342a80aa9afb7aa49486aa

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