JSON Web Token Authentication support for Django REST Framework. This package provides JSON Web Token Authentication support for Django REST framework. Unlike some more typical uses of JWTs, this module only generates authentication tokens that will verify the user who is requesting one of your DRF protected API resources. The actual request parameters themselves are not included in the JWT claims which means they are not signed and may be tampered with. You should only expose your API endpoints over SSL/TLS to protect against content tampering and certain kinds of replay attacks. You can easily test if the endpoint is working by doing the following in your terminal, if you had a user created with the username admin and password password123. Alternatively, you can use all the content types supported by the Django REST framework to obtain the auth token.
Features
- Requires Python (2.7, 3.3, 3.4, 3.5, 3.6)
- Requires Django (1.8, 1.9, 1.10, 1.11)
- Requires Django REST Framework (3.1, 3.2, 3.3, 3.4, 3.5, 3.6)
- Install using pip
- Pass in an existing token to the refresh endpoint
- Refresh with tokens can be repeated (token1 -> token2 -> token3)