Getting Token in Orion Context Broker

拜拜、爱过 提交于 2019-12-12 06:58:26

问题


I'm trying to get an Authentication Token in order to start querying some information. The problem is that when I execute the Token Script in Linux and I type my name and password, the server doesn't give me the token. I just get an empty space. Does anybody know how to proceed?

EDIT: I just type

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

In the Command Window in Ubuntu. The script asks me a user name and a password. When I write them, I just receive an empty space.

Thank you very much


回答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

Hi, it's worked for me.

You must have an account in fiware lab

Regards



来源:https://stackoverflow.com/questions/24674763/getting-token-in-orion-context-broker

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