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

Uploaded Python 3

File details

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

File metadata

  • Download URL: simplejwt-extensions-0.2.3.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.3.tar.gz
Algorithm Hash digest
SHA256 db457557ae583c37cefecbd2feddc2ef53042eee03c03405853f167bd78aad92
MD5 ef777afc482e614f96c054f5405fec0c
BLAKE2b-256 9aa898c75f9ded2bdc92634abf0f9ef8fb74af38232153edd81f5cb6975e97e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simplejwt_extensions-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 cb28f3eaf64ee2dd058afe26564717cef8a94f5deb41abdcf74f2c332c201da6
MD5 94c4d4f9d1627a73fdfb48a9318488e2
BLAKE2b-256 f828b6e9e3959141293e6b53ec8f4dceb863a47df429bab74c2aec869d2f4baf

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