Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-4932

FIWARE.Question.Tech.Data.OrionContextBroker.Oauth2ProcedureIsNotAuthorizedForAccessingOrionFI-LAB

    Details

      Description

      Created question in FIWARE Q/A platform on 21-05-2015 at 16:05
      Please, ANSWER this question AT http://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
      ?

        Activity

        Hide
        backlogmanager Backlog Manager added a comment -

        2015-10-22 18:05|CREATED monitor | # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2015-10-22 18:05|CREATED monitor | # answers= 1, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2015-10-22 21:05|UPDATED status: transition Answer| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2015-10-22 21:05|UPDATED status: transition Answer| # answers= 1, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2015-10-23 00:05|UPDATED status: transition Answered| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2015-10-23 00:05|UPDATED status: transition Answered| # answers= 1, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2015-11-02 21:05|UPDATED status: transition Finish| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2015-11-02 21:05|UPDATED status: transition Finish| # answers= 1, accepted answer= True

          People

          • Assignee:
            fermin Fermín Galán
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: