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

          Hide
          backlogmanager Backlog Manager added a comment -

          Assignee before migration = Alvaro Alonso

          Show
          backlogmanager Backlog Manager added a comment - Assignee before migration = Alvaro Alonso
          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

            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: