Skip to content

Commit

Permalink
Update authentication docs to match the new config/secrets.json format
Browse files Browse the repository at this point in the history
  • Loading branch information
larzconwell committed Dec 4, 2012
1 parent b786faf commit 1d61c28
Showing 1 changed file with 20 additions and 15 deletions.
35 changes: 20 additions & 15 deletions docs/11-authentication.md
Expand Up @@ -30,23 +30,28 @@ you need.

#### Configuring Passport

You'll need to add the settings for Passport in your app's environment.js file.
That includes the redirect locations for after an auth failure or success, and
the OAuth keys for your app. The setting will look something like this:

```javascript
passport: {
successRedirect: '/'
, failureRedirect: '/login'
, twitter: {
consumerKey: 'XXXXXXX'
, consumerSecret: 'XXXXXXX'
}
, facebook: {
clientID: 'XXXXXXX'
, clientSecret: 'XXXXXXX'
You'll need to add the settings for Passport in your config/secrets.json file.
That includes the redirect locations for after an auth failure/success, and the
OAuth keys for your app. The setting will look similar to this:
```json
{
"passport": {
"successRedirect": "/",
"failureRedirect": "/login",
"twitter": {
"consumerKey": "XXXXXX",
"consumerSecret": "XXXXXX"
},
"facebook": {
"clientID": "XXXXXX",
"clientSecret": "XXXXXX"
},
"yammer": {
"clientID": "XXXXXX",
"clientSecret": "XXXXXX"
}
}
}
```

#### Local users
Expand Down

0 comments on commit 1d61c28

Please sign in to comment.