mTLS-bound JWT token service for Swarmauri
Project description
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
cnfclaim 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file swarmauri_tokens_tlsboundjwt-0.2.0.dev46.tar.gz.
File metadata
- Download URL: swarmauri_tokens_tlsboundjwt-0.2.0.dev46.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e15aa997bbc1438ebb391ebe510f0ad40d296c688d8e3f5d9e83fb3c22a7a00c
|
|
| MD5 |
36a3072e09514c75b7b916f53f3af8f2
|
|
| BLAKE2b-256 |
2caa85cb4daa578e458fc9d5755935659c27ae4a6115ef661905cba037df3058
|
File details
Details for the file swarmauri_tokens_tlsboundjwt-0.2.0.dev46-py3-none-any.whl.
File metadata
- Download URL: swarmauri_tokens_tlsboundjwt-0.2.0.dev46-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18c2124c1d77cb3f5fa87eb9ac522ee697372985bf837c1a537c3b5111812ec8
|
|
| MD5 |
f7df58f43e94060c46d09d48174baf3a
|
|
| BLAKE2b-256 |
58e8231ca8e704863e82b869b984cd1da75ceaa72f6f303762b5515727fce304
|