Details
-
Type: Monitor
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:
-
HD-Chapter:Data
-
HD-Enabler:Orion
Description
Created question in FIWARE Q/A platform on 12-05-2015 at 16:05
Please, ANSWER this question AT http://stackoverflow.com/questions/30193763/fiware-token-script-error-parsing-json-response
Question:
FIWARE: token_script error parsing json response
Description:
I am trying to generate an access code using the script
https://raw.githubusercontent.com/fgalan/oauth2-example-orion-client/master/token_script.sh
I believe the response json has changed and the sed pattern is not working anymore.
How can I generate a valid access token?
Json response:
{
"access": {
"token":
,
"serviceCatalog": [],
"user":
,
"metadata":
}
}
line that generates the token
TOKEN=`echo $RESP | sed "s/{\"access\":{\"token\":
{.*\"id\":\"\(.*\)\"},\"user.*$/\1/g"`
I have tried to use the access:token:id returned but it does not work.
The new id is also shorter then the old ones
Thanks
Activity
Fix Version/s | 2021 [ 12600 ] |
HD-Enabler | Orion [ 10875 ] | |
HD-Chapter | Data [ 10838 ] |
Summary | FIWARE.Question.Lab.FIWARE: token_script error parsing json response | FIWARE.Question.Tech.Data.OrionContextBroker.Token_ScriptErrorParsingJsonResponse |
Assignee | Fermín Galán [ fermin ] |
Resolution | Done [ 10000 ] | |
Status | Answered [ 10104 ] | Closed [ 6 ] |
Status | In Progress [ 3 ] | Answered [ 10104 ] |
Component/s | FIWARE-TECH-HELP [ 10278 ] |
Field | Original Value | New Value |
---|---|---|
Status | Open [ 1 ] | In Progress [ 3 ] |