[Backlogmanager] [FIWARE-JIRA] (HELP-9498) [fiware-stackoverflow] access_token given by Oauth2 procedure is not authorized for accessing Orion FI-LAB

Fernando Lopez (JIRA) jira-help-desk at jira.fiware.org
Tue Jul 25 09:53:00 CEST 2017


     [ https://jira.fiware.org/browse/HELP-9498?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fernando Lopez reassigned HELP-9498:
------------------------------------

    Assignee: Fermín Galán

> [fiware-stackoverflow] access_token given by Oauth2 procedure is not authorized for accessing Orion FI-LAB
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: HELP-9498
>                 URL: https://jira.fiware.org/browse/HELP-9498
>             Project: Help-Desk
>          Issue Type: Monitor
>          Components: FIWARE-TECH-HELP
>            Reporter: Backlog Manager
>            Assignee: Fermín Galán
>              Labels: fiware, fiware-orion
>
> Created question in FIWARE Q/A platform on 21-05-2015 at 16:05
> {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/30376559/access-token-given-by-oauth2-procedure-is-not-authorized-for-accessing-orion-fi
> +Question:+
> access_token given by Oauth2 procedure is not authorized for accessing Orion FI-LAB
> +Description:+
> The oauth2 procedure that we used to get the access token for accessing Orion FI-LAB instance provided at https://github.com/fgalan/oauth2-example-orion-client does not work anymore.
> something has happened since 10 days ago.
> we have used the same procedure for retrieving the token in our android application.now either our android app dose not work.
> The probblem is :
> The access token generated by the server.js code is not recognized as a valid X-Auth-Token for the orion FI-LAB instance (orion.lab.fi-ware.eu:1026).
> by running the sample we get the below response 
>  {
>    "access_token": "3ujlcoB3uUCy45ZasN5c89DoV9549d",
>    "expires_in": 3600,
>    "token_type": "Bearer",
>    "state": "xyz",
>    "scope": "all_info",
>    "refresh_token": "FrmaTmGCJ4DDKkeGlWxfERB6R3jtij"
>  }
> However, when we use the above access_token for making http request to orion context broker we get this answer: "User token not authorized".
> On the other hand, the token obtained by the token_script.sh shell  works well as X-Auth-Token for the orion FI-LAB instance.
> The question
> which way is going to be the stable approach to access the FI-LAB Orion instance:
> the procedure taken by the server.js(in which the given token is not working)
> or
> the procedure taken by token_script.sh
> ?



--
This message was sent by Atlassian JIRA
(v6.4.1#64016)


More information about the Backlogmanager mailing list

You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy   Cookies policy