用于基于json web令牌的身份验证的长刷新令牌
djangorestframework-jwt-refresh-token的Python项目详细描述
#django rest framework jwt刷新令牌
[django rest framework jwt]的插件(https://github.com/GetBlimp/django-rest-framework-jwt) 支持[长时间运行的刷新令牌](https://auth0.com/docs/refresh-token)。
[文档](https://lock8.github.io/django-rest-framework-jwt-refresh-token/)
最初由[Nick Lang]完成的工作(https://github.com/fxdgear) 从那个[pull请求](https://github.com/GetBlimp/django-rest-framework-jwt/pull/94)。
[![生成状态](https://travis-ci.org/lock8/django-rest-framework-jwt-refresh-token.svg?branch=master)](https://travis-ci.org/lock8/django-rest-framework-jwt-refresh-token) [![codecov.io](https://codecov.io/github/lock8/django-rest-framework-jwt-refresh-token/coverage.svg?branch=master)](https://codecov.io/github/lock8/django-rest-framework-jwt-refresh-token?分支=主)
##用法
对于给定的长刷新令牌(存储在db中),发布到委托端点将返回一个新的jwt令牌。
`bash http POST client_id=app grant_type="urn:ietf:params:oauth:grant-type:jwt-bearer"refresh_token=<REFRESH_TOKEN> api_type=app http://localhost:8000/delegate/'{"token":"your_jwt_token_...", "refresh_token": "your long running refresh token..."}' `
##更改日志
- 0.5/2018-01-25
- 使refreshTokenViewsetagenericViewset利用模式生成
- 0.4/2018-01-18
将revoke函数公开为api操作
^{tt2}$
- 0.3/2018-01-16
- 添加refresh_token.revoke()以替换当前刷新令牌
- 0.2/2017-10-20
- 添加与django 2.0的兼容性
- 将django支持降至1.11以下
- 将DRF支持降低到3.6以下
- 0.1.2/2016-01-28
- 固定包装
- 0.1.1/2016-01-28
- 固定包装
- 0.1.0/2016-01-28