Use SalesForce Credentials for HTTP Request nodes

It would be useful if we would be able to use the OAuth2 credentials that are generated for the SalesForce node in a HTTP Request node. I think the method is the same, both are standard OAuth2 credentials.

Is it possible to extend the SalesForce credential to allow the HTTP Request node to also use the credentials?

That is currently not possible. However, we have discussed adding a custom path operation in each node. With this operation, you could define a custom path (an endpoint the node does not currently support) and a method (GET, POST, PUT, DELETE). Then, behind the scenes, we will inject the authentication the node already has. That would solve the issue you are having.

In terms of where that lies on our roadmap (if it does), I do not know.

Yes exactly, that would be great!

any developments on this? Salesforce authentication via oauth2 as provided natively will only work for occasional flows since authentication expires… jobs would need proper “continuous” authentication or refresh authentications - any other ideas? Solutions?

The node should refresh the credentials and get a new access token when they expired. is it not that the case for you?

No. In my case Authentication is always lost and I need to manually open the sf credential and reconnect to salesforce. I will have to manually to do the refresh token (generate access token) via http request and then manually query, update etc via http request

Will have a look at it when I have time and report back.

It looks like you might be having this problem:
(Which N8N version are you using?)

I am using the same SF credentials and after the update it works fine for me once again.


+1 for custom_path attribute. My case applies to Strava API and the supported endpoints. Workaround is to setup a generic OAuth2 credential.