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.

Files for sanic-jwt-extended, version 0.4.4
Filename, size File type Python version Upload date Hashes
Filename, size Sanic_JWT_Extended-0.4.4-py3-none-any.whl (10.4 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size Sanic-JWT-Extended-0.4.4.tar.gz (9.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page