[ https://jira.fiware.org/browse/HELP-13380?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Fernando Lopez deleted HELP-13380: ---------------------------------- > [fiware-stackoverflow] Problems with cosmos auth and Identity manager integration > --------------------------------------------------------------------------------- > > Key: HELP-13380 > URL: https://jira.fiware.org/browse/HELP-13380 > Project: Help-Desk > Issue Type: Monitor > Reporter: Backlog Manager > Labels: fiware, fiware-cosmos > > Created question in FIWARE Q/A platform on 18-08-2015 at 14:08 > {color: red}Please, ANSWER this question AT{color} https://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? -- This message was sent by Atlassian JIRA (v6.4.1#64016)
You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy Cookies policy