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.

Files for simplejwt-extensions, version 0.2.5
Filename, size File type Python version Upload date Hashes
Filename, size simplejwt_extensions-0.2.5-py3-none-any.whl (3.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size simplejwt-extensions-0.2.5.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page