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.1.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.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simplejwt-extensions-0.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 3de4948a09a683e1039fed3c555cef04d3cddf5e5c4a8970c081af451b9f689d
MD5 b77ac86f129e2e1fa9fc3556595985e6
BLAKE2b-256 b94f45bcfe6a687d5bc1badaefb827bde031d421c85f85907914db3387ca77ad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simplejwt_extensions-0.2.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f21284bbf362a1b24d20058e497edcb7805254e16abcce109865b67a8b7b103c
MD5 398669e2ddd4ea2564c77b91fa85b6ba
BLAKE2b-256 42b28d6d52c563106ab42b587790e1ed231e3c4f2c7444435db163fface49778

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