Ask Your Question
-1

How to get AUTH_TOKEN?

asked 2014-04-11 05:42:46 -0500

anonymous user

Anonymous

updated 2014-04-11 05:43:48 -0500

When I use heatclient python API.

I have some question.

There is the heatclient python API guide. http://docs.openstack.org/developer/python-heatclient/ (link text)

But I don't know how to get AUTH_TOKEN.

Thank!

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-04-11 06:50:53 -0500

smaffulli gravatar image

You'll need to ask your Identity Service (Keystone) for one. Keep reading the documentation, you'll find answers to most questions.

edit flag offensive delete link more

Comments

I use the command like this "curl -i 'http://127.0.0.1:5000/v2.0/tokens' -X POST -H "Content-Type: application/json" -H "Accept: application/json" -d '{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "devstack"}}}'"

ab6060118 gravatar imageab6060118 ( 2014-04-11 21:02:56 -0500 )edit

But I get the token like this

HTTP/1.1 200 OK Vary: X-Auth-Token

{"access": {"token": {"issued_at": "2014-04-12T02:04:40.751499", "expires": "2014-04-13T02:04:40Z", "id": "MIIS0QYJKoZIhvcNAQcCoIISwjCCEr4CAQExCTAHBgUrDgMCGjCCEScGCSqGSIb3DQEHAaCCERgEghEUeyJhY2Nlc3MiOiB7InRva2VuI....

why the ID is very long

ab6060118 gravatar imageab6060118 ( 2014-04-11 21:07:31 -0500 )edit

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-04-11 05:42:46 -0500

Seen: 207 times

Last updated: Apr 11 '14