Python implementation of mod_auth_tkt cookies
Project description
mod_auth_tkt cookie implementation
Modules
auth_tkt.ticket
is a Python re-implementation of the mod_auth_tkt
cookie. Cookies can be created with AuthTkt
and verified with
verify
.
auth_tkt.encrypted
's EncryptedAuthTkt
is a wrapper around AuthTkt
that stores an encrypted JSON payload in the mod_auth_tkt cookie's
user-data section.
Helpers
There is a get_ticket_data
function in auth_tkt.helepers
, that
decrypts and verifies a cookie.
Testing
Install development requirements:
pip install -r requirements.txt
Tests can then be run by doing:
python -m unittest discover -s tests/
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
auth_tkt-0.3.2.tar.gz
(9.5 kB
view details)
File details
Details for the file auth_tkt-0.3.2.tar.gz
.
File metadata
- Download URL: auth_tkt-0.3.2.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7cf715875b31c4e8d1d6bbfdef2eab571fd648470b129a5f61f4e48ddc437a5c |
|
MD5 | 66ac288cf694f788ab22ae8e6c26de68 |
|
BLAKE2b-256 | 71b7ed2aff6d61727c1cf604a1bd595bd6742f1d59fc4746fb193ebefae8e216 |