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.4.tar.gz (2.9 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.4-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simplejwt-extensions-0.2.4.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.3 CPython/3.9.0 Linux/5.9.1-arch1-1

File hashes

Hashes for simplejwt-extensions-0.2.4.tar.gz
Algorithm Hash digest
SHA256 e3b2ed31531cac63990500654179e720e8e24db7030e379ae78c70e4bca20be7
MD5 1413e97b0ba842a919c80c6ad870566d
BLAKE2b-256 2b3cd63ca53211ae36de8729997741295e1256def88f9e01b9cd16035cbc1121

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simplejwt_extensions-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8a4aea0eb7974131db80fdee2f0aba6eb4f1e86032960f707aa2c344d996850d
MD5 526d8d459d53cfba476ecdbc55eff7b5
BLAKE2b-256 1dcde8e5f0df4e2d196fb9e622b05b00112dc9d3d373073b025c853f9864f2a6

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