A minimal JSON Web Token
Project description
Simple JWT
Abstract
Simple JWT is a JSON Web Token authentication plugin for the Django REST
Framework
For full documentation, visit django-rest-framework-simplejwt.readthedocs.io
二次开发的Simple JWT
Installation
You can use this command to install this package:
pip3 install djangorestframework_simplejwt_captcha
Usage
from djangorestframework_simplejwt_captcha.views import TokenObtainPairView,TokenRefreshView,ImageInfo
urlpatterns = [
path('api/token/', TokenObtainPairView.as_view(), name='token_obtain_pair'),
path('api/token/refresh/', TokenRefreshView.as_view(), name='token_refresh'),
path('api/images_captcha/',ImageInfo.as_view(), name='images_captcha'),
]
- api/images_captcha 是获取图片base64和uuid
- api/token/是登录获取jwt
传入4个参数
- username
- password
- uuid # 获取上一个api 的uuid
- captcha # 图片验证码
- api/token/refresh 刷新token
For more information, see here
验证码有效期是120秒
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for djangorestframework_simplejwt_captcha-1.1.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6fc91ca3185dd4766182a3b2b279717c3048b5f256583403c5e2b5e809f1ff0 |
|
MD5 | 920c726ed468985e1d8f52ba270e87fe |
|
BLAKE2b-256 | 3a89faa31dbe82ad8781c98b0aa152ce603eaab8830412942f72a5a29756bc29 |
Close
Hashes for djangorestframework_simplejwt_captcha-1.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5c8294054ad17f58219e020ec5d7a5ad6080d7f9696a666c9c8b89f5bd56e30 |
|
MD5 | 2cebf3848c82ac24ca01c02ab3fbae92 |
|
BLAKE2b-256 | 9894c833c441b3cb4fd219531e871ef8a5fa6f57912e4a85b4a8c3ac3aa16495 |