Skip to content

akosel/django-rest-framework-jwt-refresh-token

 
 

Repository files navigation

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

Work initially done by Nick Lang from that pull request.

Build Status codecov.io

Usage

For a given long refresh token (stored in DB), POSTing to the delegate endpoint will return a new JWT token.

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.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

About

Plugin for django-rest-framework-jwt that supports long running refresh tokens https://auth0.com/docs/refresh-token

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 96.1%
  • Makefile 3.9%