Dear Fiware -Lab Since the new IdM has been deployed i cannot use the same OAUTh2 protocol as I had to use before. I have reset my password. I used to retrieve token from an application that I made in my FiLab profile in order to make http post request to orion context broker. Now I am blocked ,and I cannot go further because my token has been expired and I can't retrieve a new one. This is the error that I receive when I run node server.js in command prompt. ****************************** Server listen in port 80. Connect to localhost Handles requests to the main page auth_token is not stored in a session cookie it redirects to IDM authentication portalhttps://account.lab.fiware.org/oauth2/authorize?response_type=code&cli ent_ id=2181&state=xyz&redirect_uri=http://localhost/login ::1 - - [19/May/2015:09:32:52 +0000] "GET / HTTP/1.1" 302 334 "-" "Mozilla/5.0 ( Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.1 52 Safari/537.36" Handles requests from IDM with the access code: IYpEog6W3PPBICrl4F5Nm0oniR0hjE ######################### POST https://account.lab.fiware.org/oauth2/token Authorization : Basic MjE4MTo1NzQ3YWZmYTgxYzUxZTM4MWY2MjlhYzhiZTQxMDg5MWMzYzFiOT FhYzJlYjg2ZmNjNjBiOGJmMTgzM2UzNWU5YWMzOGI5YWYzYzU1MmZlNWNkODQyZDY3YmViYTU2MD IwMT IwMzU3OWNkMTU4MzY5NjJkZmZmM2NjYjVkMjY2Yw== POST data : grant_type=authorization_code&code=IYpEog6W3PPBICrl4F5Nm0oniR0hjE&re direct_uri=http://localhost/login ######################### { statusCode: 411, data: '<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">\n<html><head>\n<titl e>411 Length Required</title>\n</head><body>\n<h1>Length Required</h1>\n<p>A req uest of the requested method POST requires a valid Content-length.<br />\n</p>\n <hr>\n<address>Apache/2.4.7 (Ubuntu) Server at account.lab.fiware.org Port 443</ address>\n</body></html>\n' } Best Regards, Shima Fahima --- This email has been checked for viruses by Avast antivirus software. http://www.avast.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.fiware.org/private/fiware-lab-help/attachments/20150519/a56400ed/attachment.html>
You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy Cookies policy