Skip to main content

Framework-agnostic Python SDK for validating JWT access tokens issued by Wristband.

Project description

Wristband Framework-Agnostic JWT Validation SDK for Python

Wristband provides enterprise-ready auth that is secure by default, truly multi-tenant, and ungated for small businesses.

For detailed setup instructions and usage guidelines, visit the project's GitHub repository.

Details

This SDK provides secure JWT validation capabilities for applications using Wristband authentication. It is framework-agnostic and works with FastAPI, Flask, Django, and other Python web frameworks. The SDK follows OWASP security best practices and is supported for Python 3.9+. Key functionalities include:

  • Extracting Bearer tokens from HTTP Authorization headers.
  • Validating JWT signatures using Wristband's JWKS endpoint.
  • Verifying token claims including issuer, expiration, and algorithm allowlisting to prevent common JWT vulnerabilities.
  • Automatic JWKS key caching and rotation for optimal performance.
  • Comprehensive error handling with detailed validation messages.

You can learn more about JWTs in Wristband in our documentation:

Questions

Reach out to the Wristband team at support@wristband.dev for any questions regarding this SDK.

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

wristband_python_jwt-0.1.1.tar.gz (33.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wristband_python_jwt-0.1.1-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

Details for the file wristband_python_jwt-0.1.1.tar.gz.

File metadata

  • Download URL: wristband_python_jwt-0.1.1.tar.gz
  • Upload date:
  • Size: 33.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for wristband_python_jwt-0.1.1.tar.gz
Algorithm Hash digest
SHA256 dcc17bd05de5ce4c0b6ebc84f648bfb3550adcc614ac3d71fbeb43afcf242f19
MD5 4679f96f1def4b8c77b6bd31ec5b4402
BLAKE2b-256 f9c85f1e31256ace90d4c7be9fdfab313d952f2208d54adac4f5567e29fe0f12

See more details on using hashes here.

File details

Details for the file wristband_python_jwt-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for wristband_python_jwt-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6c3d75646b8958c1058ab5ca31b0da0938bab32feae9792439c5b97265add3e2
MD5 8ec1b56e9218bb7a63280d8afdb82e95
BLAKE2b-256 36fa5482a854d840b558313f5168683b6dc69608a07c89e3f005e5255b2dbecb

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