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 at 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 at 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.fiware.org/private/fiware-creatifi-coaching/attachments/20150701/16ff3e4b/attachment.html>
You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy Cookies policy