Skip to main content

Suite of Django tools around token authentication.

Project description

django-token-tools

Suite of Django tools around token authentication

Settings

TOKEN_TIMEOUT

Validity time of a token in seconds.

token_tools.generator.TokenGenerator

This module is a generic version of the token generator used by django for reset password URLs. You should implement token_idb64 and _make_hash_value to make it work.

token_idb64

This method must return a base64 encoded data, it's used to validate the token, and can embed data. It must not embed critical data, it can be simply decoded.

_make_hash_value

This is the hash value, it must be unique by user. It will be used to generate the token, and to validate a token with idb64 content.

0.1.2 (2019-12-17)

  • Documentation improvement
  • add support for django 3.0 and python 3.8

0.1.0 (2019-10-15)

  • First release

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

django-token-tools-0.1.2.tar.gz (2.8 kB view details)

Uploaded Source

File details

Details for the file django-token-tools-0.1.2.tar.gz.

File metadata

  • Download URL: django-token-tools-0.1.2.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.6.7

File hashes

Hashes for django-token-tools-0.1.2.tar.gz
Algorithm Hash digest
SHA256 02e529c924ff5b8e8935480dca88be53322b78978bdd7c526cd5dc296c89d530
MD5 74fa60c080890ac85d7a19dacbbf56a9
BLAKE2b-256 97f08c86d849a6cd5051917e8bc655f29afbef061da31b5c785577ee3ca87dff

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page