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

FIWARE.Question.Tech.Data.BigData-Analysis.Problems with cosmos auth and Identity manager integration

    Details

      Description

      Created question in FIWARE Q/A platform on 18-08-2015 at 14:08
      Please, ANSWER this question AT http://stackoverflow.com/questions/32072623/problems-with-cosmos-auth-and-identity-manager-integration

      Question:
      Problems with cosmos auth and Identity manager integration

      Description:
      I want to integrate cosmos-auth with Idm GE.
      Config for node.js application is:

      {
      "host": "192.168.4.180",
      "port": 13000,
      "private_key_file": "key.pem",
      "certificate_file": "cert.pem",
      "idm": {
      "host": "192.168.4.33",
      "port": "443",
      "path": "/oauth2/token"
      },
      "cosmos_app": {
      "client_id": "0434fdf60897479588c3c31cfc957b6d",
      "client_secret": "a7c3540aa5de4de3a0b1c52a606b82df"
      },
      "log":

      { "file_name": "/var/log/cosmos/cosmos-auth/cosmos-auth.log", "date_pattern": ".dd-MM-yyyy" }

      }

      When i send HTTP POST request directly to IDM GE to url

      https://192.168.4.33:443/oauth2/token

      with required parameters i get ok results:

      {
      access_token: "LyZT5DRGSn0F8IKqYU8EmRFTLo1iPJ"
      token_type: "Bearer"
      expires_in: 3600
      refresh_token: "XiyfKCHrIVyludabjaCyGqVsTkx8Sf"
      }

      But when i curl the cosmos-auth node.js application

      curl -X POST "https://192.168.4.180:13000/cosmos-auth/v1/token" -H
      "Content-Type: application/x-www-form-urlencoded" -d
      "grant_type=password&username=idm&password=idm" -k

      I get next result:

      {"statusCode":500,"error":"Internal Server Error","message":"An internal server error occurred"}

      Has anyone encountered something similar?
      What could be the problem?

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        2h 59m 1 Backlog Manager 08/Oct/15 12:04 PM
        In Progress In Progress Answered Answered
        3h 1 Backlog Manager 08/Oct/15 3:04 PM
        Answered Answered Closed Closed
        15h 1 Backlog Manager 09/Oct/15 6:04 AM

          People

          • Assignee:
            frb Francisco Romero
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: