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

FIWARE.Question.Tech.Obtain Auth-Token from Keyrock Fiware API.

    Details

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

      Description

      Created question in FIWARE Q/A platform on 07-09-2017 at 16:09
      Please, ANSWER this question AT https://stackoverflow.com/questions/46098895/obtain-auth-token-from-keyrock-fiware-api

      Question:
      Obtain Auth-Token from Keyrock Fiware API

      Description:
      I am running Keyrock Fiware locally on my laptop in docker. I know this is working because I can visit http://localhost:8000 and http://localhost:8000/sign_up through my browser and they respond correctly.

      I am having trouble when it comes to creating API calls. I am trying to use Postman, but I am having trouble with obtaining an auth-token, which is required to make some api calls.

      Following this guide I am trying to create a POST request to http:/localhost:8000/oauth2/tokens

      This by itself doesn't seem to work and I need to add other information like grant_type=password&username=YOUR_USERNAME&password=YOUR_PAS‌​SWORD&client_id=YOUR‌​_CLIENT_ID&client_se‌​cret=YOUR_CLIENT_SEC‌​RET

      I don't know where this information is supposed to go in my Postman request.
      I have the field "Authorization", "Headers", "Body", and in "Headers" I have the field "key", "value" and "description" but, I don't understand which of these is the right one.

        Activity

        Hide
        backlogmanager Backlog Manager added a comment -

        2018-01-12 19:51|CREATED monitor | # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2018-01-12 19:51|CREATED monitor | # answers= 1, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2018-01-12 19:54|UPDATED status: transition Answer| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2018-01-12 19:54|UPDATED status: transition Answer| # answers= 1, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2018-01-12 20:03|UPDATED status: transition Finish| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2018-01-12 20:03|UPDATED status: transition Finish| # answers= 1, accepted answer= True

          People

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

            Dates

            • Created:
              Updated:
              Resolved: