- Notifications
You must be signed in to change notification settings - Fork53
Authentication, JWT, and permission scoping for Sanic
License
NotificationsYou must be signed in to change notification settings
ahopkins/sanic-jwt
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Sanic JWT adds authentication protection and endpoints toSanic.
It is botheasy to get up and running, andextensible for thedeveloper. It can act toprotect endpoints and also provideauthentication scoping, all wrapped into a niceJWT.
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
Stars
Watchers
Forks
Packages0
No packages published