Skip to main content

Extended JWT integration with Sanic

Project description

Sanic-JWT-Extended (NOW PREPARING 1.0 RELEASE WITH MAJOR CHANGES)

Downloads PyPI PyPI - Python Version code style Documentation Status

What is Sanic-JWT-Extended?

Sanic-JWT-Extended is port of Flask-JWT-Extended for Sanic.

When to use Sanic-JWT-Extended?

Sanic-JWT-Extended not only adds support for using JSON Web Tokens (JWT) to Sanic for protecting views, but also many helpful (and optional) features built in to make working with JSON Web Tokens easier. These include:

  • Support for adding custom claims to JSON Web Tokens
  • Refresh tokens
  • Token freshness and separate view decorators to only allow fresh tokens
  • Role-based access control
  • built-in blacklist support <= WIP

Installation

pip install sanic-jwt-extended

Usage

View the documentation online

Generating Documentation

You can generate a local copy of the documentation. After installing the requirements, go to the docs directory and run:

$ make clean && make html

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

Sanic-JWT-Extended-0.4.4.tar.gz (9.3 kB view hashes)

Uploaded source

Built Distribution

Sanic_JWT_Extended-0.4.4-py3-none-any.whl (10.4 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page