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.2.0
- Use default settings for TOKEN_TIMEOUT
- Support Dajngo 4.1
- Support Python 3.10
- Move CI to github actions
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
Metadata
Release files for django-token-tools 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-token-tools-0.2.0.tar.gz | 3.6 kB | Details |
Release files / django-token-tools-0.2.0.tar.gz
| Download URL | django-token-tools-0.2.0.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ae82ffd3ce2ea45be245bb7a1025cc187082e2d50ad59c539cd6350f716a869f
|
|
BLAKE2b-256 checksum How to use checksums |
ae1c8c67ef7b5ae9763060c4b297447feae3612ab169d68b9d419d5c2eed08ba
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.9.6 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.10.1 urllib3/1.26.14 tqdm/4.64.1 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.5 CPython/3.6.15
|