【问题标题】:Getting Token in Orion Context Broker在 Orion Context Broker 中获取令牌
【发布时间】:2014-07-10 10:57:41
【问题描述】:

我正在尝试获取身份验证令牌以开始查询一些信息。 问题是当我在 Linux 中执行令牌脚本并输入我的姓名和密码时,服务器没有给我令牌。我只是得到一个空的空间。 有谁知道如何进行?

编辑:我只是输入

wget --no-check-certificate https://raw.githubusercontent.com/fgalan/oauth2-example-orion-client/master/token_script.sh
bash token_script.sh

在 Ubuntu 的命令行窗口中。该脚本询问我用户名和密码。当我写它们时,我只收到一个空白。

非常感谢

【问题讨论】:

  • 您能否编辑您的问题以包含您用于运行脚本的确切命令以及您获得的确切输出?
  • 附加问题(请编辑问题以包含该信息):无论您输入有效用户/密码还是无效用户/密码(pe.foot@bar.com / foofoo)?
  • 最后我可以获得令牌。这只是给我带来麻烦的软件包之一(contextBroker-test)。是否有必要通过 # contextBroker 运行 Orion?如果没有它,我本可以询问有关传感器的一些信息。当我这样做时,我得到一个错误(找不到文件),我不知道为什么。非常感谢。
  • 很高兴知道您最终解决了这个问题!但是,contextBroker-test 包引起问题有点奇怪,因为要获取令牌,您使用了两个与 contextBroker-test 无关的命令(wget 和 bash)。阅读您评论的最后一部分(关于“我不知道为什么”的部分),我不确定您是否还有其他问题(在解决了令牌问题之后)。在这种情况下,请不要犹豫再次询问(在 StackOverflow 的另一篇文章中)。

标签: authentication token fiware-orion fiware


【解决方案1】:
[root@fi-next /]# wget --no-check-certificate https://raw.githubusercontent.com/fgalan/oauth2-example-orion-client/master/token_script.sh
--2017-08-01 09:59:27--  https://raw.githubusercontent.com/fgalan/oauth2-example-orion-client/master/token_script.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.0.133, 151.101.64.133, 151.101.128.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 288 [text/plain]
Saving to: ‘token_script.sh’

100%[====================================>] 288    --.-K/s   in 0s

2017-08-01 09:59:27 (25.1 MB/s) - ‘token_script.sh’ saved [288/288]

[root@fi-next /]# bash token_script.sh

Username: fernando.mendez.external@atos.net
Password:

Token: xxxxxxxxxxxxxxxxxxxxxxxxxxx

嗨,它对我有用。

您必须在 fiware lab 中拥有一个帐户

问候

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-03-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-08-14
    相关资源
    最近更新 更多