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

        Hide
        backlogmanager Backlog Manager added a comment -

        2015-10-08 09:05|CREATED monitor | # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2015-10-08 09:05|CREATED monitor | # answers= 1, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2015-10-08 12:05|UPDATED status: transition Answer| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2015-10-08 12:05|UPDATED status: transition Answer| # answers= 1, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2015-10-08 15:05|UPDATED status: transition Answered| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2015-10-08 15:05|UPDATED status: transition Answered| # answers= 1, accepted answer= True
        Hide
        backlogmanager Backlog Manager added a comment -

        2015-10-09 06:05|UPDATED status: transition Finish| # answers= 1, accepted answer= True

        Show
        backlogmanager Backlog Manager added a comment - 2015-10-09 06:05|UPDATED status: transition Finish| # answers= 1, accepted answer= True

          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: