2014-07-10 22 views
-1

我試圖獲取身份驗證令牌以便開始查詢某些信息。 問題是,當我在Linux中執行令牌腳本並輸入我的名稱和密碼時,服務器不會給我令牌。我只是得到一個空白的空間。 有人知道如何進行?在Orion上下文代理中獲取令牌

編輯:我只需要輸入

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

在命令窗口中的Ubuntu。腳本問我一個用戶名和密碼。當我寫他們時,我只是收到一個空的空間。

非常感謝您

+0

您可以編輯您的問題,包括用來運行你的腳本和精確的輸出精確的命令嗎? – fgalan

+0

附加問題(請編輯問題以包含該信息):無論您是否引入了有效用戶/密碼或無效密碼(pe。[email protected]/foofoo),結果是否相同? – fgalan

+0

最後我可以得到令牌。這只是導致我麻煩的一個軟件包(contextBroker-test)。是否有必要通過#contextBroker運行Orion?我可以問一些關於沒有它的傳感器的信息。當我這樣做,我得到一個錯誤(找不到文件),我不知道爲什麼。非常感謝你。 – adrian

回答

0
[[email protected] /]# 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] 

[[email protected] /]# bash token_script.sh 

Username: [email protected] 
Password: 

Token: xxxxxxxxxxxxxxxxxxxxxxxxxxx 

嗨,這對我很有用。

您必須在fiware實驗室的賬戶

問候

相關問題