swauth and token_life

Asked by Netmagic Solutions

Hi,

I have set the token_life (under swauth in proxy-server.conf) to 4320000 (which is 50 days)

still when i get the token, the value of X-Auth-Token-Expires is 80179 (which is 24 hours)

how do I make a token life to 4320000 (which is 50 days)?

I also tried putting max_token_life to 4320000 (which is 50 days) along with it, but still the same result.

The version of swift is 1.9.0 and swauth version is 1.0.9

any suggestions ?

Regards,

Viral

Question information

Language:
English Edit question
Status:
Solved
For:
OpenStack Object Storage (swift) Edit question
Assignee:
No assignee Edit question
Solved by:
clayg
Solved:
Last query:
Last reply:
Revision history for this message
Best clayg (clay-gerrard) said :
#1

Setting token_life opiton in the config should do the trick for new tokens, dunno if you're getting a new token though. You could try to send "X-Auth-New-Token: true" along with your auth request, or delete all the tokens from the swauth containers and restart memcache to be sure. Also the client can apparently send over "X-Auth-Token-Lifetime" which can be any value up to max_token_life - so watch out not to do that, or do that and see if it makes a difference.

If you still can't find anything that works you can report the issue to swauth:

https://github.com/gholt/swauth/issues

Revision history for this message
Netmagic Solutions (simplidrive) said :
#2

Thanks clayg, that solved my question.