Hello Guys,
While trying to test the authorization code oauth grant via postman or curl, it is throwing error as below :--
curl -i -k -X POST -d "grant_type=authorization_code&code=*******************&client_id=*******************&client_secret=*******************&https://test.gateway.com:8443/oauth/v2/client/authcode?auth=done"
https://test.gateway.com:8443/auth/oauth/v2/tokenHTTP/1.1 400 Bad Request
x-ca-err: 3003113
Cache-Control: no-store
Pragma: no-cache
Content-Type: application/json;charset=UTF-8
Content-Length: 84
Date: Tue, 22 Oct 2019 09:50:50 GMT
Connection: close
Server: CA-API-Gateway/9.0
{
"error":"invalid_grant",
"error_description":"The given grant is invalid"
}
Please advise on how to test "authorization code" via postman or curl.
Thanks,
Ankush