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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file Sanic-JWT-Extended-0.4.4.tar.gz.

File metadata

  • Download URL: Sanic-JWT-Extended-0.4.4.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.17 CPython/3.7.5 Linux/5.0.0-1023-azure

File hashes

Hashes for Sanic-JWT-Extended-0.4.4.tar.gz
Algorithm Hash digest
SHA256 cfea0be4e4e4f51c19687af56553dee1d0434725c07c46a6b381213932f361af
MD5 0c86f5bc99ed252a22b1a55b035f9d6b
BLAKE2b-256 bec79e73625a4804bb0cc90e7c75626922651631f0c4b5db9486ab4b591b84b2

See more details on using hashes here.

File details

Details for the file Sanic_JWT_Extended-0.4.4-py3-none-any.whl.

File metadata

  • Download URL: Sanic_JWT_Extended-0.4.4-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.17 CPython/3.7.5 Linux/5.0.0-1023-azure

File hashes

Hashes for Sanic_JWT_Extended-0.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c3509240d9d41850b3eccc37891dbbd7af05fdf9685f75ff844179d8aa335181
MD5 b756ea96ebecd4fdc9bb484908ff27b8
BLAKE2b-256 124d7a8150735dbe6b75949281498ca8f7b85a725be7f8bab6cefff81d84c6cc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page