Skip to main content

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

  1. Install Django Rest Framework.

  2. Add "rest_framework_jet" to your INSTALLED_APPS setting like this::

    INSTALLED_APPS = [ ... 'rest_framework_jet', ]

  3. Configure JET

    REST_FRAMEWORK = { 'DEFAULT_AUTHENTICATION_CLASSES': ( 'rest_framework_jet.authentication.JETAuthentication', ) }

    GLOBAL_JET = JET( SECRET = SECRET_KEY )

  4. 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),

  5. Start the development server

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

django-rest-framework-jet-0.0.6.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

django_rest_framework_jet-0.0.6-py3-none-any.whl (5.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page