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.dev49.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.dev49.tar.gz.

File metadata

  • Download URL: swarmauri_tokens_tlsboundjwt-0.2.0.dev49.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.dev49.tar.gz
Algorithm Hash digest
SHA256 2607795d013afc81cb2e29761f0e683dcddb10e01e179eab98c45e9a4758ab4e
MD5 fc9a2f19b79cb52949cb72cd2feb94b3
BLAKE2b-256 034b5f7efa2d940ed4d841af4314cd1b85c3b9975abaa20e177011725ec34828

See more details on using hashes here.

File details

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

File metadata

  • Download URL: swarmauri_tokens_tlsboundjwt-0.2.0.dev49-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.dev49-py3-none-any.whl
Algorithm Hash digest
SHA256 66a31d8d671e4d64bc19703a1a98e088806d6c48b190e29fdab249589a942104
MD5 a02e4ae85552acb908c4432214e903fe
BLAKE2b-256 b451a258885be21e519ad42b9c3b81569164192f6347751f0d8e7f4c6bd14bf5

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