Skip to main content

JWKS-based JWT verification middleware for Swarmauri

Project description

Swamauri Logo

Swarmauri Middleware JWKS Verifier

A middleware component providing JWT verification using a cached JWKS with TTL and LRU eviction.

Features:

  • Supports RSA, EC, Ed25519, and HMAC keys from JWKS (RFC 7517)
  • Thread-safe cache with TTL refresh and LRU eviction
  • Optional issuer and algorithm whitelisting

Installation

pip install swarmauri_middleware_jwksverifier

Usage

from swarmauri_middleware_jwksverifier import CachedJWKSVerifier

verifier = CachedJWKSVerifier(fetch=my_fetch_jwks)
claims = verifier.verify(token, algorithms_whitelist=["RS256"], audience="me")

Entry Point

The middleware registers under the swarmauri.middlewares entry point as CachedJWKSVerifier.

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

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_middleware_jwksverifier-0.3.0.dev2.tar.gz.

File metadata

File hashes

Hashes for swarmauri_middleware_jwksverifier-0.3.0.dev2.tar.gz
Algorithm Hash digest
SHA256 7118a8858883a298eea0b7f0d09cf1d198a2666f29b8af1c7077a04ee3cabfe2
MD5 83ad86e45f313d56b5d742d7b9518de4
BLAKE2b-256 40c07dd9b2c244c02e55338cba441eb8790d7f6408d63ffc0bff5e562f9b79d9

See more details on using hashes here.

File details

Details for the file swarmauri_middleware_jwksverifier-0.3.0.dev2-py3-none-any.whl.

File metadata

File hashes

Hashes for swarmauri_middleware_jwksverifier-0.3.0.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 cf6e6f54bc7f4ca539d4e1e1e45d953e80c4c73829e745aa4eb2eec110cf5bea
MD5 08a54eb09f878d65ec257c43d575abe8
BLAKE2b-256 b33336c1c8a7fa26540bfee10b2e554247c2383ca4cb4bfa6520661d70999d03

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