Extended JWT integration with Sanic
Project description
Sanic-JWT-Extended (NOW PREPARING 1.0 RELEASE WITH MAJOR CHANGES)
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
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfea0be4e4e4f51c19687af56553dee1d0434725c07c46a6b381213932f361af |
|
MD5 | 0c86f5bc99ed252a22b1a55b035f9d6b |
|
BLAKE2b-256 | bec79e73625a4804bb0cc90e7c75626922651631f0c4b5db9486ab4b591b84b2 |
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3509240d9d41850b3eccc37891dbbd7af05fdf9685f75ff844179d8aa335181 |
|
MD5 | b756ea96ebecd4fdc9bb484908ff27b8 |
|
BLAKE2b-256 | 124d7a8150735dbe6b75949281498ca8f7b85a725be7f8bab6cefff81d84c6cc |