Sanic JWT
Sanic JWT adds authentication protection and endpoints to Sanic.
It is both easy to get up and running, and extensible for the developer. It can act to protect endpoints and also provide authentication scoping, all wrapped into a nice JWT.
Read the documentation | View the source code
What do I do?
It's easy: (1) install, (2) initialize, and (3) authenticate.
Install:
pip install sanic-jwt
Initialize:
from sanic import Sanic
from sanic_jwt import Initialize
def my_authenticate(request, *args, **kwargs):
...
app = Sanic()
Initialize(
app,
authenticate=my_authenticate
)
Authenticate:
http://localhost/auth
Can I customize it?
Definitely! Sanic JWT is made to allow developers to customize the operation to fit their needs. Check out the documentation to learn how.
Metadata
Release files for sanic-jwt 1.8.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sanic-jwt-1.8.0.tar.gz | 20.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sanic_jwt-1.8.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 43.8 kB
Release files / sanic-jwt-1.8.0.tar.gz
| Download URL | sanic-jwt-1.8.0.tar.gz |
|---|---|
| Size | 20.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ae16cdaebc8cd9569dae6f633a2a876205d7b36134e5920698ae5b8e4f1b83f1
|
|
BLAKE2b-256 checksum How to use checksums |
44cf380f4c698683d886b2c8a08ea68ffe11e8a75ccf354035c768bc842613bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.5
|
Release files / sanic_jwt-1.8.0-py3-none-any.whl
| Download URL | sanic_jwt-1.8.0-py3-none-any.whl |
|---|---|
| Size | 23.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5bd2a748d1bef25a330c38b574804c5ba543808f46ffaef3068001dd54b4f9c7
|
|
BLAKE2b-256 checksum How to use checksums |
454a84adefa8f19d427f07aca2eb848b984fd042e3bac19830aabc3c2089ee8c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.5
|