Salesforce OAuth2 Web Server Authentication Flow
A very lightweight implementation of the OAuth2 Web Server Authentication Flow for Salesforce for Node.js.
As Salesforce already provides a very robust REST API, the aim of this module is to provide a very thin wrapper for the authentication functionality only.
npm install salesforce-oauth2
An example using the express web framework:
var express =oauth2 = ;var callbackUrl = "<your callback url>"consumerKey = "<your consumer key>"consumerSecret = "<your consumer secret>";var app = express;app;app;app;