cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

C4C to AWS API OAuth Token based Integration

arnab_mondal2
Participant
0 Likes
1,798

Hi Team , I am trying to establish a connection between AWS API gateway to C4C . The purpose is , to fetch data from C4C Odata .

I have a predefined Odata service in C4C. I have generated client id and client secret . I wish to send this data initially from postman to get a token from C4C . Then further use the token to "get" data out of c4c .I have already gone through the links and since I am not using HCI , my case is slightly different.

https://blogs.sap.com/2017/11/14/configuring-oauth-2.0-between-sap-hybris-cloud-for-customer-and-sap...

https://answers.sap.com/questions/749397/how-to-access-c4c-odata-api-from-aws.html

https://myxxxxx.crm.ondemand.com/sap/bc/sec/oauth2/token .

I tried encoding the client id and client secret to base 64 and then passing the same in postman , but got the following error "{ "error":"invalid_client","error_description":"No OAuth 2.0 client authentication credentials included or used authentication method is unsupported. Supported authentication methods are specified in the ICF service configuration for the token endpoint in transaction SICF." } "

capture.jpg

Can someone pls advice , what am I missing ? I am actually not sure what authentication input do I need to give to the token request url .

Thanks ,

Arnab.

Hi Experts , extended update to be more precise, where exactly do I get this authentication generated ?

reference(https://blogs.sap.com/2018/01/22/how-to-get-backend-server-response-times-from-odata-calls-in-c4c/)

Accepted Solutions (1)

Accepted Solutions (1)

arnab_mondal2
Participant
0 Likes

Not yet solved, but the alternative approach was to use the 1911 Odata authentication method. We have to understand one point . Just because C4C has a feature , it is not guaranteed ( nice to have though ) that it will be compatible to AWS. Similarly just because there is a feature in AWS , it does not necessarily mean SAP products will support it . Most importantly AWS is only a partially matured tool for integration , and practices of software development do not have an apple to apple comparison with practices of integration development . 🙂 I will update this section once I complete the Odata stuff .

Suchita92
Participant
0 Likes

Thanks arnab.mondal2 for your Answer.

Can you please elaborate a bit more on what do you mean by 1911 OData Authentication method ?

We onced use Mulesoft & the authentication was Basic with a technical user.

I will look forward to your reply.

Thanks,

Suchita

Suchita92
Participant
0 Likes

Hi arnab.mondal2 ,

I was going through this and tried the OAuth SAML2.0 based auth for OData API for an Application in SAP Cloud Platform. It works ok.

I know you are using AWS and not the SAP Cloud platform, but you can try use the steps for OAuth Identity provider and OAuth Client registration with your AWS stuff - May be it helps.

https://github.com/SAP/cloud-c4c-ticket-duplicate-finder-ext

Thanks,

Suchita

Answers (0)