Skip to main content

mTLS-bound JWT token service for Swarmauri

Project description

Swarmauri Logo

PyPI - Downloads Hits PyPI - Python Version PyPI - License PyPI - swarmauri_tokens_tlsboundjwt


Swarmauri Tokens TLS-Bound JWT

A mutual-TLS bound JWT token service per RFC 8705. It derives the x5t#S256 confirmation claim from the current client certificate and verifies that presented certificates match the token binding.

Features:

  • Automatic cnf claim insertion with the SHA-256 thumbprint of the client certificate
  • Verification that rejects tokens when the live certificate is missing or mismatched

Installation

pip install swarmauri_tokens_tlsboundjwt

Usage

from swarmauri_core.crypto.types import JWAAlg
from swarmauri_tokens_tlsboundjwt import TlsBoundJWTTokenService

svc = TlsBoundJWTTokenService(key_provider, client_cert_der_getter=my_cert_getter)
await svc.mint({"sub": "alice"}, alg=JWAAlg.HS256)

Entry Point

The service registers under the swarmauri.tokens entry point as TlsBoundJWTTokenService.

Want to help?

If you want to contribute to swarmauri-sdk, read up on our guidelines for contributing that will help you get started.

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

swarmauri_tokens_tlsboundjwt-0.2.0.dev48.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file swarmauri_tokens_tlsboundjwt-0.2.0.dev48.tar.gz.

File metadata

  • Download URL: swarmauri_tokens_tlsboundjwt-0.2.0.dev48.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for swarmauri_tokens_tlsboundjwt-0.2.0.dev48.tar.gz
Algorithm Hash digest
SHA256 c478bb2afe7ac160fcb182ff3f018e3c9addd73a24f66bbf41a6e9aee7747050
MD5 97499b1efb1d8922b49a97e2916ca4fa
BLAKE2b-256 21b1d19fd55252713fd05057bacaf732f35f22c4672995b2763850569eda6c76

See more details on using hashes here.

File details

Details for the file swarmauri_tokens_tlsboundjwt-0.2.0.dev48-py3-none-any.whl.

File metadata

  • Download URL: swarmauri_tokens_tlsboundjwt-0.2.0.dev48-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for swarmauri_tokens_tlsboundjwt-0.2.0.dev48-py3-none-any.whl
Algorithm Hash digest
SHA256 896af1f8b06389705c0bbc5a0364f3c34e8a7d33c401e5edde83e663016aa54c
MD5 a187917c6c1ff09e172648bdb82ba60b
BLAKE2b-256 74e67dacfbb7c67cd6b9ca529f1fbce0d1713a7706061113949c6aceb2c11156

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