Ask Your Question

Does the X-Auth-Token expires?

asked 2014-01-09 15:20:05 -0500

fitros16 gravatar image

Hi, I used: curl -v -H 'X-Storage-User: test:tester' -H 'X-Storage-Pass: testing' and i got an answer with the X-Auth-Token and X-Storage-Url . I can create meta and containers etc. When i tried to list my account metadata after 2 days with the command: curl -v -H 'X-Storage-User: iot:ioter' -H 'X-Storage-Pass: iot' i responded with 401 unauthorized. My X-Auth-Token from above was not valid anymore and i had to run: curl -v -H 'X-Storage-User: test:tester' -H 'X-Storage-Pass: testing' again to get a new one. Is this normal? Also i cannot create any other account with: curl -v -H 'X-Storage-User: test1:tester1' -H 'X-Storage-Pass: testing1' . Only the test:tester with pass testing. Everything else i put returns 401 unauthorized.


edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted

answered 2014-01-10 23:02:47 -0500

fitros16 gravatar image

Ok, got it. Will read more for tempauth then but can you tell me where can i configure that? At the proxy-server.conf? Thanks, Nikos

edit flag offensive delete link more

answered 2014-01-10 20:51:12 -0500

torgomatic gravatar image

Token expiration depends on the auth system. It looks like you're using tempauth here, and tempauth tokens expire after 1 day (by default; it's configurable).

edit flag offensive delete link more

answered 2014-01-14 19:19:09 -0500

Hi Nick!

Reading the file I found this line: self.token_life = int(conf.get('token_life', 86400))

The second parametrs looks like 86400 / 3600 = 24 hours

I'm almost sure you just have to change this value.

edit flag offensive delete link more

answered 2014-01-14 19:50:13 -0500

fitros16 gravatar image

Thank you very much. It worked!

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-01-09 15:20:05 -0500

Seen: 922 times

Last updated: Jan 14 '14