Stwissel / node-red-contrib-salesforce

A set of Node-RED nodes to interact with Salesforce and Force.com
MIT License
10 stars 17 forks source link

Proposed fixes for Salesforce OAuth Error: invalid clientId #35

Closed AustinKf2 closed 5 years ago

AustinKf2 commented 5 years ago

With the move to nforce8, the nforce_wrapper.js was not passing the consumerKey or consumerSecret to the Connection constructor properly in the orgOptions variable. These have been added.

Along with the previous issue, the result object being returned was modified to hold two variables( connection and config). The methods for the different types of nodes were trying to use a variable named "org" which is the connection variable. Changes have been added where the org variable was being used in soql.js, sosl.js, dml.js, and chatter.js.

These changes should fix the authentication error.