Fiware Keystone API创建用户

编程入门 行业动态 更新时间:2024-10-09 09:15:17
本文介绍了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"}}' \ 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创建用户

本文发布于:2023-11-28 11:51:31,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1642288.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:用户   Fiware   Keystone   API

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!