Ask Your Question
0

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' http://127.0.0.1:8080/auth/v1.0 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' http://127.0.0.1:8080/auth/v1.0 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' http://127.0.0.1:8080/auth/v1.0 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' http://127.0.0.1:8080/auth/v1.0 . Only the test:tester with pass testing. Everything else i put returns 401 unauthorized.

Thanks

edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted
0

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
0

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
0

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

Hi Nick!

Reading the tempauth.py 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
0

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

fitros16 gravatar image

Thank you very much. It worked!

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 686 times

Last updated: Jan 14 '14