Skip to content

Authentication, JWT, and permission scoping for Sanic

License

Notifications You must be signed in to change notification settings

ahopkins/sanic-jwt

Sanic JWT

Latest PyPI versionPython versionsVersion statusMIT License

Build StatusDocumentationCodacy BadgeTest CoverageCode 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:

fromsanicimportSanicfromsanic_jwtimportInitializedefmy_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.

About

Authentication, JWT, and permission scoping for Sanic

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors 19