Fiware Keystone API创建用户 [英] Fiware Keystone API Create User

查看:129
本文介绍了Fiware Keystone API创建用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在尝试使用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"}}' \
 http://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创建用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆