Metadata-Version: 2.4
Name: auth_tkt
Version: 1.0.0
Summary: Python implementation of mod_auth_tkt cookies
Home-page: http://github.com/yola/auth_tkt
Author: Yola
Author-email: engineers@yola.com
License: MIT
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: cryptography<51,>=50
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license
Dynamic: license-file
Dynamic: requires-dist
Dynamic: summary

# mod_auth_tkt cookie implementation

[![Build Status](https://travis-ci.org/yola/auth_tkt.png)](https://travis-ci.org/yola/auth_tkt)

## 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`.

[mod_auth_tkt]: http://www.openfusion.com.au/labs/mod_auth_tkt/

`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
