cancel
Showing results for 
Search instead for 
Did you mean: 

Connectivity issue OAuth 2.0 between SAP CPI to Salesforce REST API using a Rojo Adapter

former_member735755
Discoverer

Hi All,

I am trying to connect Salesforce (REST API) from SAP CPI through Rojo Salesforce adapter. The connected app was created in Salesforce and the respective credential details from salesforce was given below was configured in CPI.

1.Username & Password : (saved as user credential type in CPI security material)

2.Security Token : (saved as secure parameter type in CPI security material)

3.Consumer key and Consumer Secret : (saved as user credential type in CPI security material)

But we are getting the below error in CPI :

org.apache.camel.CamelException: <?xml version="1.0" encoding="UTF-8" standalone="no"?>

<array>

<error>invalid_grant</error>

<error_description>authentication failure</error_description>

</array>

Does anyone face the similar issue and let us know the resolution ?

Thanks,

Suresh

Accepted Solutions (0)

Answers (2)

Answers (2)

Souragopalsethy
Explorer
0 Kudos

Hi Sapians,

I have identified that the error message "Invalid grant" may be caused by an error in the configuration or a mismatch of credentials or URL.

To resolve this issue, please take note of the following suggestions:

1. If you are connecting to a sandbox or non-production Salesforce instance, please use the URL "https://test.salesforce.com".For production, please use "https://login.salesforce.com".

2. Please ensure that no value is passed to the "Security Token Alias" field if there are no IP blockages from Salesforce's end.

Souragopalsethy_0-1707841862799.png

I trust that these recommendations will help resolve the issue at hand. If you require any further assistance, please do not hesitate to reach out to me.

0 Kudos

Hi Suresh,

Did you get the solution. I also facing same error.

Regards

Chandra