Skip to main content

JWT Signature Validator

Latest Commit
Package version

JWT Signature Middleware is a pure ASGI Middleware that can be used with AGSI frameworks like FastAPI, Starlette and Sanic.

Installation

pip install jwt-signature-validator

Usage

from fastapi import FastAPI
from jwt_signature_validator import EncodedPayloadSignatureMiddleware
from pydantic import BaseModel

app = FastAPI()

app.add_middleware(
    EncodedPayloadSignatureMiddleware,
    jwt_secret="hello",
    jwt_algorithms=["HS256"],
    protect_hosts=["*"]
)


class Model(BaseModel):
    text: str


@app.post("/")
def check(req: Model):
    return req

License

This project is licensed under the terms of the MIT license.

Metadata

Release files for jwt-signature-validator 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jwt-signature-validator 0.3.0
File Size Uploaded Provenance Actions
jwt_signature_validator-0.3.0.tar.gz 7.4 kB Without provenance Details for jwt_signature_validator-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for jwt-signature-validator 0.3.0
File Interpreter ABI Platform Actions
jwt_signature_validator-0.3.0-py3-none-any.whl Python 3 none any Details for jwt_signature_validator-0.3.0-py3-none-any.whl

Total release size: 13.9 kB

Release files / jwt_signature_validator-0.3.0.tar.gz

Download URL jwt_signature_validator-0.3.0.tar.gz
Size 7.4 kB
Tags Source
SHA-256 checksum
How to use checksums
528148b442b9e87f5a646a6f0dcf3be90bbfc9c66269cfb8c12ce44f3db98cda
BLAKE2b-256 checksum
How to use checksums
5ad40458900bde7263cb70eac1292ef2ed45e6eec29666ca4f849ae719f33643
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / jwt_signature_validator-0.3.0-py3-none-any.whl

Download URL jwt_signature_validator-0.3.0-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
efbd749f11f7088eac3024f4c81e3e086f48b71783a4e0cce0c6fa7744a5d34e
BLAKE2b-256 checksum
How to use checksums
758219347dfe216c44de34f3e07cbd2b2d6fee94aacb6e9d4fdeb381a2016d12
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Security for jwt-signature-validator 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page