Skip to main content

mTLS-bound JWT token service for Swarmauri

Project description

Swamauri Logo

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.

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.dev3.tar.gz (7.0 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.dev3.tar.gz.

File metadata

File hashes

Hashes for swarmauri_tokens_tlsboundjwt-0.2.0.dev3.tar.gz
Algorithm Hash digest
SHA256 c812383a7ca5b1e266a0bc441d4c7ed02e9cca042b3e02a323ef579dc787fa68
MD5 4b9a0907b9c4ecedc757c94e7ce00218
BLAKE2b-256 11c2336400d3bb441f6ff018a442ca434d1c94c2219677bc2af47b79601df6fd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swarmauri_tokens_tlsboundjwt-0.2.0.dev3-py3-none-any.whl
Algorithm Hash digest
SHA256 298b7f4c6c4c0d19f62bd1046edb499d82b151f8dbebede2caee42ad7b181d68
MD5 c24c5cce1f4b9cc5d77773f51cf8677c
BLAKE2b-256 87a83a703a4515b098246e7228e579e70bfae67aca01cbeebd6a4b48c5730bc7

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