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

[fiware-stackoverflow] access_token given by Oauth2 procedure is not authorized for accessing Orion FI-LAB

    Details

      Description

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

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        2h 59m 1 Backlog Manager 06/Jun/17 9:04 AM
        In Progress In Progress Answered Answered
        2h 59m 1 Backlog Manager 06/Jun/17 12:04 PM
        Answered Answered Closed Closed
        3h 1 Backlog Manager 06/Jun/17 3:04 PM
        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        fla Fernando Lopez made changes -
        HD-Enabler Orion [ 10875 ]
        HD-Chapter Data [ 10838 ]
        fla Fernando Lopez made changes -
        Assignee Fermín Galán [ fermin ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2017-06-06 15:05|UPDATED status: transition Finish| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2017-06-06 15:05|UPDATED status: transition Finish| # answers= 1, accepted answer= True
        backlogmanager Backlog Manager made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2017-06-06 12:05|UPDATED status: transition Answered| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2017-06-06 12:05|UPDATED status: transition Answered| # answers= 1, accepted answer= True
        backlogmanager Backlog Manager made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2017-06-06 09:05|UPDATED status: transition Answer| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2017-06-06 09:05|UPDATED status: transition Answer| # answers= 1, accepted answer= True
        backlogmanager Backlog Manager made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2017-06-06 06:05|CREATED monitor | # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2017-06-06 06:05|CREATED monitor | # answers= 1, accepted answer= True
        backlogmanager Backlog Manager created issue -

          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: