Salesforce OAuth2 authentication with Consumer Key and Consumer Secret

Hi,

I created a Connected App in Salesforce for which I have obtained consumer key and consumer secret, as described here: Salesforce credentials | n8n Docs

However, I am unsure where exactly to input these credentials since I only see a single button with a fallback URL, as depicted in the following image::

Apart from this, I have successfully connected and created multiple workflows without using the Connected App. Nonetheless, I now require the Connected App to enable broader access.

For your reference, the N8N (cloud) version currently in use is 0.221.2.

Thank you for your assistance!

Best regards,
Antoine

It appears that in previous versions, specifically in a N8N on-prem installation with version 0.218.0, we had the option to provide a client ID and a client secret using Salesforce OAuth2 API authentication.

However, in my current situation, I require the N8N cloud for some specific reasons. Unfortunately, I haven’t been able to locate the same option to input the client ID and client secret for Salesforce OAuth2 API authentication in the N8N cloud 0.221.2. version.

I would greatly appreciate any assistance or guidance you can provide on this matter.

Thanks

Hi @lequeuxa :wave: Welcome to the community :tada:

I just tried on n8n cloud, and was able to create a new credential with OAuth2JWT which I believe would have what you’re looking for. You can read more about that here.

That screen looks like this:

And gives you the ability to add in your secret and key.

1 Like

Thanks a lot.

So weird, I do not have the “Connect with OAuth2” feature when using Salesforce JWT API, I recently upgraded to latest beta: 0.230.1 but that does not make any difference, I guess it a version change.

But now I can define a username and private key, should work.

1 Like