基于JSON Web Token认证的长期刷新令牌
项目描述
# django-rest-framework-jwt-refresh-token
为[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)在[这个拉取请求](https://github.com/GetBlimp/django-rest-framework-jwt/pull/94)中完成。
[ [?branch=master
## 使用方法
对于存储在数据库中的给定长期刷新令牌,向 委托 端点 POST 将返回新的 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
将 RefreshTokenViewSet 转换为 GenericViewSet 以利用模式生成
- 0.4 / 2018-01-18
公开撤销功能作为 API 动作
`POST /refresh_tokens/{key}/revoke/`
- 0.3 / 2018-01-16
添加 refresh_token.revoke() 来替换当前的刷新令牌
- 0.2 / 2017-10-20
添加与 Django 2.0 的兼容性
删除低于 1.11 的 Django 支持
删除低于 3.6 的 DRF 支持
- 0.1.2 / 2016-01-28
修复打包
- 0.1.1 / 2016-01-28
修复打包
- 0.1.0 / 2016-01-28
项目详情
哈希值 for djangorestframework-jwt-refresh-token-0.5.tar.gz
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 66e5794bf4bc26f5c973d3e76f903fc53b8a7629d1ff972d7586d6eb50606ff0 |
|
MD5 | 6d08780b6fe7d21de8ea1ea2b95a1955 |
|
BLAKE2b-256 | 568d0ed85797f67278580d42f828cfb9966560723b0802e1a546c00cf584acfb |
哈希值 for djangorestframework_jwt_refresh_token-0.5-py2.py3-none-any.whl
算法 | 哈希摘要 | |
---|---|---|
SHA256 | d3f75c0d1c468e13775158841816af11de3c8e338fb22351b7a46388f73c7335 |
|
MD5 | abeb7f1b20f93a1dac00d44594a168d9 |
|
BLAKE2b-256 | 032ff43ddfd2e4e44d1b7ed184170749cf445974d5d8ad300d095dc398d82da2 |