on 2020 Sep 07 5:38 AM
Hi All,
I am new to API's and was trying to access Ariba API into SAP Cloud trial version. I was able to get access to Ariba API Developer portal and got the API Key/OAuth Client Id/OAuth Secret. While I am trying to create a destination in Cloud foundry the connection is not getting established.
Connection to "XXX" established. Response returned: "401: Unauthorized"
Below is the URL I am using to connect :
I am using the OAuth Client Id/OAuth Secret in the user and password.
Appreciate any help on the parameters used to connect.
Thanks.
Assad
Request clarification before answering.
Hi Assad,
I have never tried to access Ariba's API from SAP Cloud Platform Destinations but I have already worked with Procurement APIs.
You need to get an "access_token" (based on OAuth Client and Secret) first before being able to call an other API. So I suppose this is why you are getting an error 401 because you call the API without being granted the access_token.
I recently replied to a similar question and described the process so maybe it can be useful for you.
Best regards,
Cédric
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, Ariba APIs work on oAuth2 authentication not Basic authentication, try with OAuth2JWTBearer or OAuth2UserTokenExchange
https://help.sap.com/doc/92c0b171cceb4db2a93518b34b84febd/Cloud/en-US/connectivity_service.pdf page 17
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.