Restful Tacker API - Authentication Token

Asked by Raman J

Please let me know how to generate the authentication token for invoking the /vfn.json and /vfnd.json Restful API. If I use the token printed in the horizon.log, I am able to invoke from a Restful Client, but tokens generated by below is not working.

Please help. Need it for a POC for tacker with my company.

Thanks
Raman

curl -i \
  -H "Content-Type: application/json" \
  -d '
{ "auth": {
    "identity": {
      "methods": ["password"],
      "password": {
        "user": {
          "name": "admin",
          "domain": { "id": "default" },
          "password": "adminpwd"
        }
      }
    }
  }
}' \
  http://localhost:5000/v3/auth/tokens

Question information

Language:
English Edit question
Status:
Answered
For:
tacker Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Sripriya (sseetha) said :
#1

Hi Can you try this curl command. It worked for me.

curl -i \
  -H "Content-Type: application/json" \
  -d '
{"auth": {"tenantName": "service", "passwordCredentials": {"username": "tacker", "password": "devstack"}}}' \
  http://localhost:5000/v2.0/tokens

Cheers,
Sripriya

Revision history for this message
yong sheng gong (gongysh) said :
#2

when keystone v3 is used, the auth stuff is not enough

Can you help with this problem?

Provide an answer of your own, or ask Raman J for more information if necessary.

To post a message you must log in.