Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 1d61c28390a7b3d170cbdc4a376079d67af77151 1 parent b786faf
@larzconwell larzconwell authored
Showing with 20 additions and 15 deletions.
  1. +20 −15 docs/11-authentication.md
View
35 docs/11-authentication.md
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.