Rest connection to Invoke Thirdparty
Summary:
Rest connection from to invoke a thridparty
Content (required):
Hi All,
I am trying to invoke a thridparty using the rest API. Below is the curl command to get the token (this is working from postman)
***********************
curl --location --request POST 'https://AAAAA.com/AuthServer/api/Token' \
--header 'Authorization: Basic 1234zxcvqwer' \
--header 'Content-Type: application/json' \
--data-raw '{
"grant_type": "client_credentials",
"user_login": "NNNNNNN" }'
******************************
create a Rest connection in OIC(OAuthTwolegged) and below is the Access Token request format. Connection is successful.
-X POST -H "Content-Type: application/x-www-form-urlencoded" -H "Authorization:Basic 1234zxcvqwer" -d 'grant_type=client_credentials&user_login=NNNNNNN'