Fiware Keystone API Create User

爱⌒轻易说出口 提交于 2019-12-11 10:54:01

问题


We are trying to create users in Fiware IDM using Keystone Identity API.

We are sending the following curl command

curl -s \
 -H "X-Auth-Token: e746971040657101bb1e" \
 -H "Content-Type: application/json" \
 -d '{"user": {"name": "newuser", "password": "changeme"}}' \
 http://localhost:35357/v3/users | python -mjson.tool

The token we have used is the one configured in keystone.conf

admin_token=e746971040657101bb1e

But the result we are getting is the following

{
    "error": {
        "code": 401, 
        "message": "The request you have made requires authentication.", 
        "title": "Unauthorized"
    }
}

Does anyone have an idea about what can happen?


回答1:


A couple of ideas for you.

One is that the port value 35357 is not for the admin API calls, it's intended for user calls.

Also since you are using the v3 API I believe that the token can't be used when creating a user unless you are indicating a domain.

However I can't tell from your curl command what action you are trying to do.



来源:https://stackoverflow.com/questions/31411266/fiware-keystone-api-create-user

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!