Chika Emeka-Nweze

HCP Anywhere API - Unable to Generate Token

Discussion created by Chika Emeka-Nweze on May 1, 2018
Latest reply on May 3, 2018 by Chika Emeka-Nweze

Hi there,


I am having issues in trying to use the HCP Anywhere APIs. We are on VERSION: 2.1.1 and I have a user that has Admin role but I cannot generate a valid token.


Please, I would appreciate you it to check if I am not doing something right.




C:\curl>curl -kiX POST -H "X-HCPAW-FSS-API-VERSION:2.1.1" -H "Accept: application/json" -H "Content-Type: application/json" -d '{"hcpapiuser": "hcppiuser","password": "Make017", "grant_type": "urn:hds:oauth:negotiate-client"}'

HTTP/1.1 200 OK

Strict-Transport-Security: max-age=31536000; includeSubDomains

X-Content-Type-Options: nosniff

X-XSS-Protection: 1; mode=block

X-Frame-Options: SAMEORIGIN

Content-Security-Policy: default-src 'self'; style-src 'self' 'unsafe-inline'

X-Content-Security-Policy: default-src 'self'; style-src 'self' 'unsafe-inline'

Set-Cookie: JSESSIONID=1C4AF3FB242E564F688386EEAB6650EA; Path=/go/; Secure; Http


Page-Name: LoginPage

Content-Type: text/html;charset=utf-8

Content-Length: 7950

Date: Tue, 01 May 2018 17:56:56 GMT

Server: hcpaw