JET - Django APP
Project description
===== Rest Framework JET
Rest Framework JET is a Django app to manage authentication. It can create tokens, verify and refresh them.
Detailed documentation is in the "docs" directory.
Quick start
-
Install Django Rest Framework.
-
Add "rest_framework_jet" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [ ... 'rest_framework_jet', ]
-
Configure JET
REST_FRAMEWORK = { 'DEFAULT_AUTHENTICATION_CLASSES': ( 'rest_framework_jet.authentication.JETAuthentication', ) }
GLOBAL_JET = JET( SECRET = SECRET_KEY )
-
Include the rest_framework_jet URLconf in your project urls.py like this::
url(r'^api/token-auth/', generate_jet), url(r'^api/token-verify/', verify_jet), url(r'^api/token-refresh/', refresh_jet),
-
Start the development server
-
Visit http://127.0.0.1:8000/api/token-auth/ to authenticate a user and generate a valid token.
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 django-rest-framework-jet-0.0.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | edf34c32ea2cf87aa5e8a611e28e9d1e27044ac1608730ba69f934457e258458 |
|
MD5 | 5bf7614066feb9bdb6057bcb8e59e87a |
|
BLAKE2b-256 | 76eef9218e717e7abed1a33e62e12e61a858e76f00dd9578682ded1a398d331f |
Hashes for django_rest_framework_jet-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | adfde11f6450d908e1cc6c9994e8ad09e568752d94ac22057c5baa639478e3aa |
|
MD5 | 675585f4a3d7982d238a37ecde5829a3 |
|
BLAKE2b-256 | 6fa4a83de21d70369392b0d1d2ee428aa8be639f3d6df4607a3920956b68fa70 |