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.2.tar.gz (3.0 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.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simplejwt-extensions-0.2.2.tar.gz
  • Upload date:
  • Size: 3.0 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.2.tar.gz
Algorithm Hash digest
SHA256 fc039ad9cfe833d56608d51d7dc3b0e61b6bd0cd6100f6a09aa96d484ce774fd
MD5 f7941c7d71f0a72bc712a190d4948f73
BLAKE2b-256 82512f46d4211b6337986f43011956bc503127ce949a603d7c35cf7e252346e4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simplejwt_extensions-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 95f37e823e2a7844cc5926f539b97f009038004219240003058af13f504a0495
MD5 fe3e288e9985195fb9df49470859e5b1
BLAKE2b-256 ac823159e543225773de853354c33e113af09d9bf8c69f92fa9c0654851882a4

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