Permalink
Browse files

Update authentication docs to match the new config/secrets.json format

  • Loading branch information...
1 parent b786faf commit 1d61c28390a7b3d170cbdc4a376079d67af77151 @larzconwell larzconwell committed Dec 4, 2012
Showing with 20 additions and 15 deletions.
  1. +20 −15 docs/11-authentication.md
View
@@ -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

0 comments on commit 1d61c28

Please sign in to comment.