1
votes

I have keyrock of fiware in my own laptop though docker.

When I do in my browser htp://localhost:8000 , this link redirect to a login website, so it's okay. When I put htp://localhost:8000/sign_up this link redirect to a register website, so it's okay also.

But then thing is, If I want to do that though GET and POST, how can I do? I installed Postman in my laptop but, when I put GET http://localhost:8000 everything is okay. But when I put GET htp://localhost:8000/v3/users if I want list users, doesn't work. the last I readed in this page : https://developer.openstack.org/api-ref/identity/v3/#users

Could you help me, please?

Thank you very much,

Best Regards.

2
What is the error code that postman is showing. It shows in blue at the right top of the response section. - yamenk
[enter image description here][1] [1]: i.stack.imgur.com/ZFXQH.png This is the problem that Postman is showing. And if you put GET localhost:8000/sign_up it work, you can see next picture: i.stack.imgur.com/drTor.png - Mr. Zacarias Satrustegui

2 Answers

1
votes

As stated in the link you put in your question:
"A user with no assigned roles has no access to OpenStack resources."

The right port for your request is 5000 (keystone) instead of 8000 (horizon): http://localhost:5000/v3/users

So, to do what you want, you have to assign some specific role to the user you are using to access the list of users and, besides, I think you have to pass a valid token (X-Auth-Token header) in the request headers.

I hope it can help you.

0
votes

I gave you a reply here that I think is a more detailed version of the same question. I hope this helps you. Otherwise, we can follow it in that question.

Best regards