Skip to main content

mod_auth_tkt cookie implementation

Build Status

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 pytest

Metadata

Release files for auth-tkt 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for auth-tkt 1.0.0
File Size Uploaded Provenance Actions
auth_tkt-1.0.0.tar.gz 8.4 kB Without provenance Details for auth_tkt-1.0.0.tar.gz

Release files / auth_tkt-1.0.0.tar.gz

Download URL auth_tkt-1.0.0.tar.gz
Size 8.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7a76bc801add067c168e3afa8617cb875976516011d5596519f9a4594eec34ca
BLAKE2b-256 checksum
How to use checksums
8fb221aaa6d8b06ca9ea10dd5e45a7838a643c5ce631157d9e66043d410c0617
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for auth-tkt 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page