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

[fiware-stackoverflow] curl with oAuth login flow

    Details

      Description

      Created question in FIWARE Q/A platform on 09-10-2015 at 01:10
      Please, ANSWER this question AT https://stackoverflow.com/questions/33027504/curl-with-oauth-login-flow

      Question:
      curl with oAuth login flow

      Description:
      I'm trying to implement a oAuth login flow in a bash script.

      The request I need to send to my API is:

      curl -X GET 'http://account.lab.fiware.org/oauth2/authorize?response_type=token&client_id=my_client_id&redirect_uri=my_redirect_uri&state=testing'

      I keep getting a 301 Moved Permanently Apache message referencing to the same address..

      When trying the same url from my browser - it does work.

      Is there a way that I can copy the browser behaviour with curl?

      So, once the above request has been made I will be able to see the redirect location in order to get the token from?

        Activity

        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        fla Fernando Lopez made changes -
        HD-Enabler KeyRock [ 10889 ]
        HD-Chapter Security [ 10841 ]
        jicg José Ignacio Carretero Guarde made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        jicg José Ignacio Carretero Guarde made changes -
        Assignee Alvaro Alonso [ aalonsog ]
        backlogmanager Backlog Manager made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        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 ]
        backlogmanager Backlog Manager created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved: