Following the n8n doc for a self-hosted version of n8n, I attempted to connect a Salesforce instance using the Salesforce OAuth2 API credentials but getting an “OAUTH_APPROVAL_ERROR_GENERIC” in the Salesforce auth flow.
I am just setting up a Salesforce dev account myself to give this a go on my own (might be tomorrow though). Could you confirm whether your callback URL would be some “special” hostname (like localhost or an internal hostname in your network or something like this) so I can try reproducing this as accurately as possible?
Hi @ccome, so I just gave this a go with the settings you have provided and did not run into the problem you have described (my own Salesforce login domain would also be something like foo.my.salesforce.com here). I was also using a local domain for n8n only configured in my host file which is not reachable from the outside.
One noticeable difference was that for me it never said just “Full access (full)” in the “Selected OAuth Scopes” field. Salesforce instead listed all of them for me:
So maybe you could try manually adding all scopes (instead of picking just Full access (full)) for the app, just to double-check if this changes the behavior?
On a side note, Salesforce said Changes can take up to 10 minutes to take effect. whenever I updated the configuration or created a new app in its Manage Connected Apps screen. In reality it was much more than 10 minutes for me and I got a lot of different errors during the wait (form redirect_uri_mismatch to very generic errors).