OIC OAuth Two legged Rest API
Summary:
Trying to create a REST connection in OIC for the API which supports Two legged authentication. Able to test from Postman, same is failing from OIC with below error.
CASDK-0004: Failed to authenticate against the application with the credentials provided; Cannot request OAuth access token. [AccessToken] Null or empty access token was received with status [200].POST https://uatapi.CCCCC.com/api/token returned a response status of 200 OK
Imported curl into postman, it is perfectly fetching access_token and token_type.
Let me know if I am missing anything,
Content (required):
OIC Connection:
-X POST -H 'Content-Type:application/x-www-form-urlencoded' -H 'Accept:application/json' -d 'client_id=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA&client_secret=BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB &grant_type=client_credentials'