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

FIWARE.Request.Tech.Security.IDM-KeyRock.Can'tretrieveToken

    Details

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

      Description

      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

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

      [Created via e-mail received from: shima <shima@foneclay.com>]

        Activity

        Hide
        aalonsog Alvaro Alonso added a comment -

        It seems like you hace to include 'Content-Length' header in the request.

        Show
        aalonsog Alvaro Alonso added a comment - It seems like you hace to include 'Content-Length' header in the request.

          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: