Extended JWT integration with Sanic
Project description
🛡 Sanic-JWT-Extended 🛡
☢️ This is README of 1.0 version. Click here to checkout legacy version(v0.4.4)
🚀 What is Sanic-JWT-Extended?
Sanic-JWT-Extended is an open source Sanic extension that provides JWT support (comply with RFC standard)
💡 Why 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 public claims with namespacing
- Support for adding private claims
- Refresh tokens
- Token freshness and separate view decorators to only allow fresh tokens
- Access control
- blacklist support with some built-in blacklist
- Provides Token object for easier jwt manifulation
⚡️ Installation
$ pip install sanic-jwt-extended --pre
$ poetry add sanic-jwt-extended --git https://github.com/NovemberOscar/Sanic-JWT-Extended.git
$ pipenv install sanic-jwt-extended --pre
📚 Documentation
🛠 Developing Sanic-JWT-Extended
Prerequesties
Installaion
$ make env
this will install dependencies with poetry. if poetry not found, will install poetry.
Development
make format
: this will format your code withisort
andblack
make check
: this will lint your code withisort
,black
,mypy
andpylint
make clean
: this will remove temporary things.
Commit Convention
<{verb}>({scope}): {summary}
Example
- test:
<test>(foobar): Add TCs about FooBar
- fix:
<fix>(#12): Fix SpamEgg
- normal:
<feat>(cookie): Add cookie writer
Testing
$ make check # check convention and type
$ poetry run pytest
with coverage:
$ poetry run pytest --cov=sanic_jwt_extended tests/
Make sure you wrote TCs about your work!
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
Close
Hashes for Sanic-JWT-Extended-1.0.dev10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffe4f7e22f355181c7b54a775abda67c047d1dffad81303e8e1598cdd3a6c70d |
|
MD5 | 167f06b8ddba06386fce020401f16f06 |
|
BLAKE2b-256 | c47a727510803a6ad1a0e72519aff6b3faf0dc4807ac4b6b44f87232ce3cfd74 |
Close
Hashes for Sanic_JWT_Extended-1.0.dev10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4db099288d3f4e047af2f673520153049f476ace5a0a9d68648d50d237513ac5 |
|
MD5 | 52c7cbbeeddbdce128f517fcd12803b3 |
|
BLAKE2b-256 | 59f0d07b32df64c9c5f648b8ad61bb1588be2c4a9db03d28241d589c07d393ef |