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

File metadata

File hashes

Hashes for swarmauri_tokens_tlsboundjwt-0.2.0.dev4.tar.gz
Algorithm Hash digest
SHA256 b52d1117d764c712cdb43fdfcd91dcc95bbef018622a6bf694b4bdcea8f51a92
MD5 0f88d74be8a3494580cb695649511c79
BLAKE2b-256 52c1e3424c9cc2a836c0ca92b6a7c3b2822999a4f9e6aa33ba2a009d34874e88

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swarmauri_tokens_tlsboundjwt-0.2.0.dev4-py3-none-any.whl
Algorithm Hash digest
SHA256 b32e8bec5464b01b6519d379d6a18ad26b67c049401b361aac15d98f01255299
MD5 3555281702be04d563dd33721ca0513a
BLAKE2b-256 5c1dd888a67b5a243b0e826f91d0324fc94c097648e76194bcba9302629477e4

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