Need help with sanic-jwt?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

ahopkins
192 Stars 35 Forks MIT License 447 Commits 21 Opened issues

Description

Authentication, JWT, and permission scoping for Sanic

Services available

!
?

Need anything else?

Contributors list

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.

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.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.