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

FIWARE.Question.Lab.Spain.FIWARE-Lab KeyRock Access Token Request error

    Details

    • Type: Monitor
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2021
    • Component/s: FIWARE-LAB-HELP
    • Labels:

      Description

      Created question in FIWARE Q/A platform on 09-07-2015 at 17:07
      Please, ANSWER this question AT http://stackoverflow.com/questions/31322425/fiware-lab-keyrock-access-token-request-error

      Question:
      FIWARE-Lab KeyRock Access Token Request error

      Description:
      I'm testing the Authorization Code Grant protocol on the instance of KeyRock GE at FIWARE-Lab using DHC web client.

      So far I have succeeded on implementing the Authorization Request, and I obtain the code to be used on the Access Token Request. The URL for the Authorization Request is the following (although not executed on DHC, but on a regular browser so I can introduce my user and password):

      https://account.lab.fiware.org/oauth2/authorize/?response_type=code&client_id=2122&redirect_uri=http%3A%2F%2Flocalhost%2FCallback

      I have checked that the client_id and the redirect_uri are both correct against the values related with my application at my account at FIWARE-Lab.

      Executing the following request (can't post images, so I'll describe)

      POST
      https:// account.lab.fiware.org/oauth2/token?grant_type=authorization_code&code=<code>&redirect_uri=http%3A%2F%2Flocalhost%2FCallback – <code> is the code obtained on the Auth. Request
      Authorization: Basic <XXXX> — <XXXX> is the result of base64(client_id+":"+client_secret)
      Content-Type: application/x-www-form-urlencoded

      ...I get the following error message:

      {
      "error":{
      "message": "create_access_token() takes exactly 3 arguments (2 given)",
      "code": 400,
      "title": "Bad Request"
      }
      }

      I've checked the authorization is correct (Basic using the OAuth credentials from my application), and I'm using the same redirect_uri used at the previous Authorization Request, and the code obtained from it.

      ¿What is wrong?

      P.S.: If I remove any or all of the query parameters, I still get the same error

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        1s 1 Backlog Manager 23/Sep/15 10:05 AM
        In Progress In Progress Answered Answered
        5h 37m 1 Backlog Manager 23/Sep/15 3:42 PM
        Answered Answered Closed Closed
        4d 17h 14m 1 Manuel Escriche 28/Sep/15 8:57 AM
        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        backlogmanager Backlog Manager made changes -
        Summary FIWARE.Question.Lab.FIWARE-Lab KeyRock Access Token Request error FIWARE.Question.Lab.Spain.FIWARE-Lab KeyRock Access Token Request error
        mev Manuel Escriche made changes -
        HD-Node Spain [ 10846 ]
        mev Manuel Escriche made changes -
        Component/s FIWARE-LAB-HELP [ 10279 ]
        Component/s FIWARE-TECH-HELP [ 10278 ]
        mev Manuel Escriche made changes -
        Assignee Fernando Lopez [ fla ]
        mev Manuel Escriche made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        mev Manuel Escriche made changes -
        Component/s FIWARE-TECH-HELP [ 10278 ]
        backlogmanager Backlog Manager made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Status Open [ 1 ] In Progress [ 3 ]
        backlogmanager Backlog Manager created issue -

          People

          • Assignee:
            fla Fernando Lopez
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: