Skip to content

Commit

Permalink
merge conf
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinohara80 committed Apr 8, 2015
2 parents 0cd600c + 3f3a0f1 commit ce793fa
Showing 1 changed file with 21 additions and 16 deletions.
37 changes: 21 additions & 16 deletions README.md
Expand Up @@ -182,11 +182,9 @@ org.getAuthUri();
An example of using this function in a typical node route would be:

```js
app.get('/auth/sfdc',
function(req,res){
res.redirect(org.getAuthUri());
}
);
app.get('/auth/sfdc', function(req,res){
res.redirect(org.getAuthUri());
});
```

Once you get a callback at the Redirect URI that you specify, you
Expand All @@ -208,18 +206,17 @@ org.authenticate({ code: 'SOMEOAUTHAUTHORIZATIONCODE' }, function(err, resp){
```

An example of using this function in a typical node route and populating the code from the request would be:

```js
app.get('/auth/sfdc/callback',
function(req, res) {
org.authenticate({code: req.query.code}, function(err, resp){
if(!err) {
console.log('Access Token: ' + resp.access_token);
} else {
console.log('Error: ' + err.message);
}
});
}
);
app.get('/auth/sfdc/callback', function(req, res) {
org.authenticate({code: req.query.code}, function(err, resp){
if(!err) {
console.log('Access Token: ' + resp.access_token);
} else {
console.log('Error: ' + err.message);
}
});
});
```

### User-Agent Flow
Expand Down Expand Up @@ -437,6 +434,14 @@ as the module name but it's best to refer
to their documentation for the exact namespace when using their
plugin.

Here is a list of some available plugins today:

* [nforce-tooling](https://github.com/jeffdonthemic/nforce-tooling) Tooling API support
* [nforce-chatter](https://github.com/jeffdonthemic/nforce-chatter) Chatter API support
* [nforce-metadata](https://github.com/kevinohara80/nforce-metadata) Metadata API support
* [nforce-express](https://github.com/kevinohara80/nforce-express) Express.js plugin for
OAuth authentication helpers

Documentation on authoring plugins is coming soon...

## nforce API Basics
Expand Down

0 comments on commit ce793fa

Please sign in to comment.