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

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        21h 18m 1 Alvaro Alonso 20/May/15 9:25 AM
        In Progress In Progress Answered Answered
        1s 1 Alvaro Alonso 20/May/15 9:25 AM
        Answered Answered Closed Closed
        1s 1 Alvaro Alonso 20/May/15 9:25 AM
        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        mev Manuel Escriche made changes -
        HD-Enabler KeyRock [ 10889 ]
        HD-Chapter Security [ 10841 ]
        mev Manuel Escriche made changes -
        Sender Email shima@foneclay.com
        mev Manuel Escriche made changes -
        Summary FIWARE.Request.Lab.Security.IDM-KeyRock.Can'tretrieveToken FIWARE.Request.Tech.Security.IDM-KeyRock.Can'tretrieveToken
        aalonsog Alvaro Alonso made changes -
        Summary FIWARE.Request.Lab.Can't retrieve Token FIWARE.Request.Lab.Security.IDM-KeyRock.Can'tretrieveToken
        backlogmanager Backlog Manager made changes -
        Summary [Fiware-lab-help] Can't retrieve Token FIWARE.Request.Lab.Can't retrieve Token
        aalonsog Alvaro Alonso made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        aalonsog Alvaro Alonso made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        aalonsog Alvaro Alonso made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        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.
        mev Manuel Escriche made changes -
        Assignee Alvaro Alonso [ aalonsog ]
        mev Manuel Escriche made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        fw.ext.user FW External User created issue -

          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: