Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

JWT oauth flow for Sanic

Project description

Sanic JWT

Latest PyPI version Python versions Version status MIT License

Build Status Documentation Codacy Badge Test Coverage Code style: black

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.


pip install sanic-jwt


from sanic import Sanic
from sanic_jwt import Initialize

def my_authenticate(request, *args, **kwargs):

app = Sanic()



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.

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, version 1.6.0
Filename, size File type Python version Upload date Hashes
Filename, size sanic-jwt-1.6.0.tar.gz (19.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page