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
Built Distribution
File details
Details for the file simplejwt-extensions-0.2.5.tar.gz
.
File metadata
- Download URL: simplejwt-extensions-0.2.5.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.6 CPython/3.7.9 Linux/5.8.0-53-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5badedaca11a00db2b9ee986081698528fa1e7ed45e2baba5ffebf63fa28eef4 |
|
MD5 | ba3bbf7dec88ded4d097d386f892daa4 |
|
BLAKE2b-256 | 7d6bde9814792e990b8d1bf490ead7f936f49f15abcfc2ebde9dd802cfd8c0ab |
File details
Details for the file simplejwt_extensions-0.2.5-py3-none-any.whl
.
File metadata
- Download URL: simplejwt_extensions-0.2.5-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.6 CPython/3.7.9 Linux/5.8.0-53-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f950197cb0f1d83e54db9e0373cc6c26f1a4f16af684614a2b1b741dc533bbf4 |
|
MD5 | e8ace935dee43c0eecd40e0522895616 |
|
BLAKE2b-256 | 622472c7e96b8cce61c573b8453732d91a3671ac74104f725d685202c337e8ae |