cschwede/swauth — pull request #1 by gholt (2013-03-01 06:40:38+00:00)
Title: Allow user set X-Auth-Token-Lifetime, with limits

This is based on your pull request to me at https://github.com/gholt/swauth/pull/48

What do you think about this instead?

* New conf value of max_token_life, existing token_life conf value is
now just the default token life.

* When a user requests a token, they can send an
X-Auth-Token-Lifetime header with the number of seconds they'd like
the token to be valid for. This will be capped to max_token_life.

* Response to getting a token has new X-Auth-Token-Expires header
that is the number of seconds the token is valid for.