Skip to main content

Library to give vanilla Django jwt auth.

Project description

dj-jwt

Dj-JWT is a JSON Web Token authentication plugin for vanilla django built on Simple JWT. This is a thin layer on Simple JWT, it should not need to be updated too regularly.

Acknowledgments

Simple JWT is a great jwt library, and is updated regulary. However, it is based soley for rest framework. This library is a thin layer on top of that which uses Simple JWT, but lets you use it with vanilla django.

Getting Started

Install

dj-jwt can be installed with pip:

pip install dj-jwt

Add 'djjwt' to your INSTALLED_APPS setting.

INSTALLED_APPS = [
    ...
    'djjwt',
]

Include Urls

path("token/", include(("djjwt.urls", "djjwt"), namespace="dj-jwt"))

Creates

/token/authenticate/
/token/refresh/
/token/verify/
from django.urls import reverse_lazy

reverse_lazy('jwt-token:authenticate')
reverse_lazy('jwt-token:refresh')
reverse_lazy('jwt-token:verify')

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

dj-jwt-0.0.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

dj_jwt-0.0.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file dj-jwt-0.0.1.tar.gz.

File metadata

  • Download URL: dj-jwt-0.0.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.4

File hashes

Hashes for dj-jwt-0.0.1.tar.gz
Algorithm Hash digest
SHA256 95a4b17d8bb2b00d54aa189ad901998cbabdba4f0b805d116efb4b3792ce84f2
MD5 0162713819b9720461208d0b13f34a46
BLAKE2b-256 78f97de1abaefb7892d339163edbcc0bd9cb8532396b58aed79fd5d8a1d8f658

See more details on using hashes here.

File details

Details for the file dj_jwt-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: dj_jwt-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.7.4

File hashes

Hashes for dj_jwt-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 498342ba5ca3be1cd31262135c0cd5d8fb6e88c8536c6cf48ba8f32cd61d09b1
MD5 0be30ae1c78eac912f86af5aa6226842
BLAKE2b-256 99bf8084269219b69383f6ba9e69152d92f963c55ffc7d5e2eb80fc8dc3a5d47

See more details on using hashes here.

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