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. Should return None to fail authentication or a User object to succeed. Will only be used by the JWTTokenAuthenticationSSO 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
Close
Hashes for simplejwt-extensions-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4184d5ec7528163a1faa3d15b2cc18d1892880daa7b49fee56deb2d587d2cde |
|
MD5 | a0c494bada37478c080c51f933ee31d0 |
|
BLAKE2b-256 | 86d66c830d0cc9db7f7e95ca0a7780ec94c015500cac7832c76516da5a0d1241 |
Close
Hashes for simplejwt_extensions-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd4f35bd87cc52cd6b5fd41fe5fb5f99038b05071c9a3daa696890d52a6eb928 |
|
MD5 | c0bea27cd3e5e2853e0c2d96cd207c37 |
|
BLAKE2b-256 | 8ad2cc86f39debdf53d8f4b4b5be63bc37c2adacd17cb78f629b8a04acefd168 |