Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Authentication, JWT, and permission scoping for Sanic

License

NotificationsYou must be signed in to change notification settings

ahopkins/sanic-jwt

Repository files navigation

Latest PyPI versionPython versionsVersion statusMIT License

Build StatusDocumentationCodacy BadgeTest CoverageCode style: black

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

Sponsor this project

 

Packages

No packages published

Contributors19


[8]ページ先頭

©2009-2025 Movatter.jp