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. 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

simplejwt-extensions-0.1.0.tar.gz (2.8 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.1.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simplejwt-extensions-0.1.0.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.7.6 Linux/4.15.0-88-generic

File hashes

Hashes for simplejwt-extensions-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c4184d5ec7528163a1faa3d15b2cc18d1892880daa7b49fee56deb2d587d2cde
MD5 a0c494bada37478c080c51f933ee31d0
BLAKE2b-256 86d66c830d0cc9db7f7e95ca0a7780ec94c015500cac7832c76516da5a0d1241

See more details on using hashes here.

File details

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

File metadata

  • Download URL: simplejwt_extensions-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.5 CPython/3.7.6 Linux/4.15.0-88-generic

File hashes

Hashes for simplejwt_extensions-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fd4f35bd87cc52cd6b5fd41fe5fb5f99038b05071c9a3daa696890d52a6eb928
MD5 c0bea27cd3e5e2853e0c2d96cd207c37
BLAKE2b-256 8ad2cc86f39debdf53d8f4b4b5be63bc37c2adacd17cb78f629b8a04acefd168

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