Ask Your Question

Rest API Keystone (get token)

asked 2018-08-27 10:45:35 -0500

raniaadouni gravatar image

Hi ,everyone I am trying to get the token from keystone service but always getting this "message": "The resource could not be found, I am using postman , I am always getting 404 I don't knew what is the problem I have openstack newton version , this what I just put in the postman url : /auth/tokens and in the body : { "auth":{ "tenantName":"demo", "passwordCredentials":{ "username":"demo", "password":"password" } } }
and I get this output : { "error": { "message": "The resource could not be found.", "code": 404, "title": "Not Found" } }

what I am missing !!! any suggestion please !!!

edit retag flag offensive close merge delete

3 answers

Sort by » oldest newest most voted

answered 2018-10-02 08:09:24 -0500

ehab gravatar image

Im having the same problem here using http://localhost:5000/v3/auth/tokens to send post request using curl command like in guide, it worked perfectly but postman fails with 404 error tried to change port in settings this resulted in not receiving response at all

edit flag offensive delete link more

answered 2018-08-27 15:13:29 -0500

raniaadouni gravatar image

Hi , I want to ask you if you had the chance that you work with API ,I am getting some difficult with this , So after doing and I get the results then I wan to try the get but in tutorial i need to pass my token in the X-Auth-Token request header but I can't find the X-Auth-token !!!

edit flag offensive delete link more


You don’t find the x-auth-token header. You create it. For example, curl -H “x-auth-token: $TOKEN”

Bernd Bausch gravatar imageBernd Bausch ( 2018-08-27 18:04:49 -0500 )edit

Hi, Bend can you please send me your mail because I can't send you all my message !!!

raniaadouni gravatar imageraniaadouni ( 2018-08-27 19:01:02 -0500 )edit

Hi , Bernd , I have issue with the Get i get this "error": {"message": "No token in the request", "code": 404,"title": "Not Found" }} and I am using the token that I was create by POST , what is the problem and can you explain to me what is this v3/auth/token !!

raniaadouni gravatar imageraniaadouni ( 2018-08-27 22:19:09 -0500 )edit

Sorry if I don't publish my email account in a public forum. Befriend me on LinkedIn; see the link in my profile.

Bernd Bausch gravatar imageBernd Bausch ( 2018-08-28 00:38:37 -0500 )edit

If you don't know what is v3/auth/tokens, why do you want to access it?

A POST to v3/auth/tokens has the purpose of creating a token based on credentials that you submit in the request data. A GET has the purpose of validating a token. You need two headers, x-auth-token and x-subject-token.

Bernd Bausch gravatar imageBernd Bausch ( 2018-08-28 00:41:13 -0500 )edit

answered 2018-08-27 13:30:58 -0500

This looks like v2 credentials. For v3 password authentication, I think you need to provide either a scope or a domain. Correct ways of authenticating are documented at

edit flag offensive delete link more


Hi , Thanks it work now :)

raniaadouni gravatar imageraniaadouni ( 2018-08-27 14:02:05 -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


Asked: 2018-08-27 10:45:35 -0500

Seen: 362 times

Last updated: Aug 27 '18