Skip to main content

No project description provided

Project description

Extensions for the djangorestframework-simplejwt library.

Settings

All pre-existing settings for djangorestframework-simplejwt are unchanged. The following settings are added and can be set in your settings.py file:

# Django project settings.py

...

SIMPLE_JWT = {
    ...
    'NEW_USER_CALLBACK': None,
}

NEW_USER_CALLBACK

A dot path to a callable that is used if the identifier from the token does not match a user in the database. Receives the request and the identifier as arguments. Should return None to fail authentication or a User object to succeed. Will only be used by the JWTAuthentication backend.

Backends

JWTTokenAuthentication

Use this instead of the djangorestframework-simplejwt JWTTokenAuthentication backend to take advantage of features added by this package.

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

simplejwt-extensions-0.2.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

simplejwt_extensions-0.2.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file simplejwt-extensions-0.2.0.tar.gz.

File metadata

  • Download URL: simplejwt-extensions-0.2.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.7.6 Linux/4.15.0-109-generic

File hashes

Hashes for simplejwt-extensions-0.2.0.tar.gz
Algorithm Hash digest
SHA256 4b920756830d8080b0a3c4aa4d3bc54d89525eedf6e842588467f96958621066
MD5 0dba1a476be649b1a6ae26cc259e8ab3
BLAKE2b-256 28dc82ee5656f91f722ede1735bfc9bc5cb5dad66e6a107167d9d983352999ea

See more details on using hashes here.

File details

Details for the file simplejwt_extensions-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: simplejwt_extensions-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.7.6 Linux/4.15.0-109-generic

File hashes

Hashes for simplejwt_extensions-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8b096f54b70d49209864d54ac7c206fbd078f9ef60980d10b5704dfbfebf090b
MD5 f821ee103b798cf2c0efdfc5977ad81b
BLAKE2b-256 559a1e34a426ad1d70d810b8d9f71a0e9c2ae928183b3486aad2d1fdc8c26348

See more details on using hashes here.

Supported by

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