Hi, I have registered a test application with client_id=e2a4d618c80a4457a63aaed0d5003e61 and client_secret=5c830cba67324ca9a4c80019198a62b6. The attempt to obtain an access token for it produces the following error: curl -v --header "Authorization: Basic ZTJhNGQ2MThjODBhNDQ1N2E2M2FhZWQwZDUwMDNlNjE6ZTJhNGQ2MThjODBhNDQ1N2E2M2FhZWQwZDUwMDNlNjEK" -d grant_type=password -d username=myusername at gmail.com -d password=mypassword https://account.lab.fiware.org/oauth2/token * Trying 130.206.84.7... * Connected to account.lab.fiware.org (130.206.84.7) port 443 (#0) * ALPN, offering http/1.1 * Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH * successfully set certificate verify locations: * CAfile: /opt/local/share/curl/curl-ca-bundle.crt CApath: none * TLSv1.2, TLS Unknown, Unknown (22): * TLSv1.2, TLS handshake, Client hello (1): * SSLv2, Unknown (22): * TLSv1.2, TLS handshake, Server hello (2): * SSLv2, Unknown (22): * TLSv1.2, TLS handshake, CERT (11): * SSLv2, Unknown (22): * TLSv1.2, TLS handshake, Server key exchange (12): * SSLv2, Unknown (22): * TLSv1.2, TLS handshake, Server finished (14): * SSLv2, Unknown (22): * TLSv1.2, TLS handshake, Client key exchange (16): * SSLv2, Unknown (20): * TLSv1.2, TLS change cipher, Client hello (1): * SSLv2, Unknown (22): * TLSv1.2, TLS handshake, Finished (20): * SSLv2, Unknown (20): * TLSv1.2, TLS change cipher, Client hello (1): * SSLv2, Unknown (22): * TLSv1.2, TLS handshake, Finished (20): * SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384 * ALPN, server did not agree to a protocol * Server certificate: * subject: OU=Domain Control Validated; CN=*.lab.fiware.org * start date: 2014-10-09 00:00:00 GMT * expire date: 2016-10-08 23:59:59 GMT * subjectAltName: account.lab.fiware.org matched * issuer: C=NL; O=TERENA; CN=TERENA SSL CA * SSL certificate verify ok. * SSLv2, Unknown (23): > POST /oauth2/token HTTP/1.1 > Host: account.lab.fiware.org > User-Agent: curl/7.42.1 > Accept: */* > Authorization: Basic ZTJhNGQ2MThjODBhNDQ1N2E2M2FhZWQwZDUwMDNlNjE6ZTJhNGQ2MThjODBhNDQ1N2E2M2FhZWQwZDUwMDNlNjEK > Content-Length: 75 > Content-Type: application/x-www-form-urlencoded > * upload completely sent off: 75 out of 75 bytes * SSLv2, Unknown (23): < HTTP/1.1 401 Unauthorized < Date: Sat, 16 May 2015 15:48: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 < * SSLv2, Unknown (23): * SSLv2, Unknown (23): * SSLv2, Unknown (23): * Connection #0 to host account.lab.fiware.org left intact {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}} Could you tell me where is my error? Thank you very much! Best regards, Boris Kotzev -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.fiware.org/private/fiware-lab-help/attachments/20150516/50d0df21/attachment.html>
You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy Cookies policy