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 given below was configured in CPI.
- Username & Password: (saved as user credential type in CPI security material)
- Security Token: (saved as secure parameter type in CPI security material)
- Consumer key and Consumer Secret: (saved as user credential type in CPI security material)
But we are getting the below error in CPI:
<error>invalid_grant</error>
<error_description>authentication failure</error_description>
All the configurations in CPI and Salesforce seems to be good from my end.
The methods which we have tried were:
- Tried from postman using the OAuth2.0 authorization, we were able to reach the salesforce login page by getting a 200 ok response code, but we were unable to post anything to Salesforce.
- Tried creating a new connected app by deleting the old one, but fails again with the same error.