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

File metadata

File hashes

Hashes for swarmauri_middleware_jwksverifier-0.3.0.dev4.tar.gz
Algorithm Hash digest
SHA256 4f62a2dc4fce4f990dbcd1dbf5c8a3e565db1d28ab22a4d7d445c45f4a81e1a5
MD5 10b41cc2e77c4e5ba4f9322b98001f20
BLAKE2b-256 8c3f28b80e36d595a5a0aaf5d1848a45d5a241b0af22d6d6b6e23544e1d94a9e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for swarmauri_middleware_jwksverifier-0.3.0.dev4-py3-none-any.whl
Algorithm Hash digest
SHA256 067b0f71ccf4422e076341f4a93dfdecd08101994af5a902d847284c276e50d5
MD5 66b5803ca6ea86aac73f4a70d4c2cf0a
BLAKE2b-256 6349d86eb3660b2bf5673f2a8d0fd2ecc85b8efebfb5c18c43c4737a9873b1e1

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