Long Refresh Tokens for JSON Web Token based authentication
Project description
# django-rest-framework-jwt-refresh-token Plugin for django-rest-framework-jwt that supports long running refresh tokens https://auth0.com/docs/refresh-token
[Documentation](https://lock8.github.io/django-rest-framework-jwt-refresh-token/)
Work initially done by [Nick Lang](https://github.com/fxdgear) from that [pull request](https://github.com/GetBlimp/django-rest-framework-jwt/pull/94).
[![Build Status](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?branch=master)
## Usage
For a given long refresh token (stored in DB), POSTing to the delegate endpoint will return a new JWT token.
`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..."}' `
## Changelog
- 0.3 / 2018-16-01
Add refresh_token.revoke() to replace the current refresh token
- 0.2 / 2017-10-20
Add compatibility with Django 2.0
Drop Django support below 1.11
Drop DRF support below 3.6
- 0.1.2 / 2016-01-28
Fix packaging
- 0.1.1 / 2016-01-28
Fix packaging
- 0.1.0 / 2016-01-28
Initial Release based on https://github.com/GetBlimp/django-rest-framework-jwt/pull/123
Project details
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
Hashes for djangorestframework-jwt-refresh-token-0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 987be404742749589c517b87918e8db3935ecf8afe2e4b43d1074300b20d1b88 |
|
MD5 | 9b484530d7f07dd6a51cba1fc4f54c21 |
|
BLAKE2b-256 | b142c9162516f37c29fa04364e83e5ea13775b6792e751137e6f99f1476ed5c2 |
Hashes for djangorestframework_jwt_refresh_token-0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc7aeacbb6544c40bdd02dec079c38d5ecaafc7bea34eb98d50da30df603862b |
|
MD5 | bf97774bffd5e0892193d7bef57d0bf8 |
|
BLAKE2b-256 | cf1e697c12edeeca7086bd593a1c017277f1ed6e3438a65562722c653f60d26e |