Salesforce OAuth Error

Describe the problem/error/question

Trying to connect n8n cloud to salesforce via oauth2, after authenticating on salesforce getting the error below

What is the error message (if any)?

We can’t authorize you because of an OAuth error. For more information, contact your Salesforce administrator.

OAUTH_APPROVAL_ERROR_GENERIC : An unexpected error has occured during authentication. Please try again.

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.109.2
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): cloud
  • Operating system:

Hey @Jason_Humphrey , did you find a solution to this? Running into the same error with my Salesforce sandbox when trying to authenticate to my locally running n8n instance.

In case anyone else is having similar issues, didn’t find a solution for this exactly. But when I switched my Salesforce External Client App to use JWT authentication, I got the connection working.

Note on that, when copying the JWT secret in n8n authentication form to the “Private Key“ field, check that key breaks correctly for new lines/rows. I had to edit mine to structure it correctly.

It was:
blaa123XYZ blaa123XYZ blaa123XYZ
blaa123XYZ blaa123XYZ

Should have been:
blaa123XYZ
blaa123XYZ
blaa123XYZ
blaa123XYZ
blaa123XYZ

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.