Older versions of swauth supported manually setting up a salt string in
conf file. This change re-introduces it and makes it a tunable option.
The current behavior of randomly generating salt for every password is
NOT affected with this change.
Change-Id: Ifdf6f806b954e4d41c083eeffa981cd7d0dd50b9
Signed-off-by: Prashanth Pai <ppai@redhat.com>
* 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.