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

FIWARE.Request.Tech.Security.IDM-KeyRock.API problems

    Details

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

      Description

      Hi,

      A user cannot access his account in the global instance of IdM KeyRock.

      "I am using fiware lab as our external site login platform. After last
      update of fiware lab my interfaces to fiLab API (I used Rest) stopped
      working because REST API was probably upgraded or something. Now when I am
      trying to set up the API again I have stumbled upon issue where
      authentication from my site tactmap.com to
      https://account.lab.fiware.org/oauth/token with POST.

      https://github.com/ging/fi-ware-idm/wiki/Using-the-FIWARE-LAB-instance

      Can you some how guide me to right direction on what is wrong with my PHP /
      cURL code."

      curl call is:

      $process = curl_init('https://account.lab.fiware.org/oauth2/token');
      //curl_setopt($process, CURLOPT_HTTPHEADER,
      array('Content-Type:application/json'));
      //curl_setopt($process, CURLOPT_HEADER, 1);
      curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
      curl_setopt($process, CURLOPT_USERPWD, "petja.karki@versoteq.com"
      . ":" . "teppo1234");
      curl_setopt($process, CURLOPT_TIMEOUT, 30);
      curl_setopt($process, CURLOPT_POST, 1);
      curl_setopt($process, CURLOPT_RETURNTRANSFER, TRUE);
      $return = curl_exec($process);
      echo "CURL RESPONSE: <br>";
      var_dump($return);
      $info = curl_getinfo($process);
      echo "<br><br>CURL GET INFO: <br>";
      var_dump($info);
      curl_close($process);

      and the response:

      CURL RESPONSE:
      string(347) "HTTP/1.1 404 Not Found Date: Wed, 01 Jul 2015 10:06:00 GMT
      Server: Apache/2.4.7 (Ubuntu) Vary: Accept-Language,Cookie X-Frame-Options:
      SAMEORIGIN Content-Language: en Transfer-Encoding: chunked Content-Type:
      application/json {"error": {"message": "No Consumer found with id:
      petja.karki@versoteq.com", "code": 404, "title": "Not Found"}}"

      CURL GET INFO:
      array(26) { ["url"]=> string(43) "
      https://account.lab.fiware.org/oauth2/token" ["content_type"]=> string(16)
      "application/json" ["http_code"]=> int(404) ["header_size"]=> int(235)
      ["request_size"]=> int(236) ["filetime"]=> int(-1) ["ssl_verify_result"]=>
      int(0) ["redirect_count"]=> int(0) ["total_time"]=> float(0.246184)
      ["namelookup_time"]=> float(0.012655) ["connect_time"]=> float(0.062011)
      ["pretransfer_time"]=> float(0.170537) ["size_upload"]=> float(19)
      ["size_download"]=> float(112) ["speed_download"]=> float(454)
      ["speed_upload"]=> float(77) ["download_content_length"]=> float(-1)
      ["upload_content_length"]=> float(19) ["starttransfer_time"]=>
      float(0.246143) ["redirect_time"]=> float(0) ["redirect_url"]=> string(0)
      "" ["primary_ip"]=> string(12) "130.206.84.7" ["certinfo"]=> array(0) { }
      ["primary_port"]=> int(443) ["local_ip"]=> string(13) "46.101.187.88"
      ["local_port"]=> int(55742) }
      Thanks you in advance.
      Kr, Xavier Carol.

      _______________________________________________
      Fiware-creatifi-coaching mailing list
      Fiware-creatifi-coaching@lists.fi-ware.org
      https://lists.fi-ware.org/listinfo/fiware-creatifi-coaching

      [Created via e-mail received from: Xavier Carol Rossell <xavier.carol@i2cat.net>]

        Issue Links

          Activity

          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open In Progress In Progress
          15d 15h 12m 1 Manuel Escriche 16/Oct/15 8:58 AM
          In Progress In Progress Answered Answered
          2s 1 Manuel Escriche 16/Oct/15 8:58 AM
          Answered Answered Closed Closed
          3h 44m 1 Alvaro Alonso 16/Oct/15 12:43 PM
          fla Fernando Lopez made changes -
          Fix Version/s 2021 [ 12600 ]
          mev Manuel Escriche made changes -
          HD-Enabler KeyRock [ 10889 ]
          HD-Chapter Security [ 10841 ]
          mev Manuel Escriche made changes -
          Sender Email xavier.carol@i2cat.net
          mev Manuel Escriche made changes -
          Summary FIWARE.Request.Lab.Security.IDM-KeyRock.API problems FIWARE.Request.Tech.Security.IDM-KeyRock.API problems
          aalonsog Alvaro Alonso made changes -
          Summary FIWARE.Request.Lab.[Fiware-creatifi-coaching] [CreatiFI Helsinki Hub] General Support #330: fiware lab idm API problems FIWARE.Request.Lab.Security.IDM-KeyRock.API problems
          aalonsog Alvaro Alonso made changes -
          Resolution Done [ 10000 ]
          Status Answered [ 10104 ] Closed [ 6 ]
          mev Manuel Escriche made changes -
          Assignee Manuel Escriche [ backlogmanager ] Alvaro Alonso [ aalonsog ]
          mev Manuel Escriche made changes -
          Component/s FIWARE-TECH-HELP [ 10278 ]
          Component/s X_MIGRATION [ 11403 ]
          mev Manuel Escriche made changes -
          Status In Progress [ 3 ] Answered [ 10104 ]
          mev Manuel Escriche made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Hide
          backlogmanager Backlog Manager added a comment -

          Original time span = 15 days, 3:11:28

          Show
          backlogmanager Backlog Manager added a comment - Original time span = 15 days, 3:11:28
          Hide
          backlogmanager Backlog Manager added a comment -

          Assignee before migration = Alvaro Alonso

          Show
          backlogmanager Backlog Manager added a comment - Assignee before migration = Alvaro Alonso
          backlogmanager Backlog Manager made changes -
          Field Original Value New Value
          Link This issue relates to HELC-849 [ HELC-849 ]
          backlogmanager Backlog Manager created issue -

            People

            • Assignee:
              aalonsog Alvaro Alonso
              Reporter:
              fw.ext.user FW External User
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: