我们正在尝试使用Keystone Identity API在Fiware IDM中创建用户.
We are trying to create users in Fiware IDM using Keystone Identity API.
我们正在发送以下curl命令
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"}}' \ localhost:35357/v3/users | python -mjson.tool我们使用的令牌是在keystone.conf中配置的令牌
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?
推荐答案一些适合您的想法.
一个是端口值35357不是用于admin API调用的,而是用于用户调用的.
One is that the port value 35357 is not for the admin API calls, it's intended for user calls.
此外,由于您使用的是v3 API,因此我相信创建用户时不能使用令牌,除非您指定域.
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.
但是,我无法从curl命令中得知您要执行的操作.
However I can't tell from your curl command what action you are trying to do.
更多推荐
Fiware Keystone API创建用户
发布评论