Chris McDonough
2009-06-25 299b4cbf28f7ecf21f6634c26abcda2f39fcdd6f
refs
author Chris McDonough <chrism@agendaless.com>
Thursday, June 25, 2009 07:02 +0200
committer Chris McDonough <chrism@agendaless.com>
Thursday, June 25, 2009 07:02 +0200
commit299b4cbf28f7ecf21f6634c26abcda2f39fcdd6f
tree ac5065d546448638529f3fde8ff2d01681acc6cb tree | zip | gz
parent 224a2c11c0bdaeea6654d34155988b5341b0e340 view | diff
- If the ``identity`` dict passed to the ``auth_tkt`` ``remember``
method contains a ``max_age`` key with a string (or integer) value,
treat it as a cue to set the ``Max-Age`` and ``Expires`` headers in
the returned cookies. The cookie ``Max-Age`` is set to the value
and the ``Expires`` is computed from the current time.


3 files modified
72 ■■■■ changed files
CHANGES.txt 9 ●●●●● diff | view | raw | blame | history
repoze/who/plugins/auth_tkt.py 29 ●●●● diff | view | raw | blame | history
repoze/who/plugins/tests/test_authtkt.py 34 ●●●●● diff | view | raw | blame | history