We'd love to hear from you! Provide  feedback  to earn a badge today. Take our quick survey
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

OIC OAuth Two legged Rest API

Accepted answer
11
Views
8
Comments

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'

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!