aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/router.js
diff options
context:
space:
mode:
authorDennis Eriksen <dennis.se@gmail.com>2013-04-25 02:12:34 +0200
committerDennis Eriksen <dennis.se@gmail.com>2013-04-25 02:12:34 +0200
commit4dd7550b87386114ba4e86be17afbaa4d3fa11d6 (patch)
treefda64ece3ad24151f17c25f8c234755b753801a3 /router.js
parenttest commit to dev branch (diff)
downloadDivid-4dd7550b87386114ba4e86be17afbaa4d3fa11d6.tar.gz
addedpassport config file and did some other stuff
Diffstat (limited to '')
-rw-r--r--router.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/router.js b/router.js
index cf3bd51..0750bdf 100644
--- a/router.js
+++ b/router.js
@@ -6,8 +6,6 @@ var passport = require('passport')
, bcrypt = require('bcrypt')
, SALT_WORK_FACTOR = 15;
-var FACEBOOK_APP_ID = "504825706245603";
-var FACEBOOK_APP_SECRET = "e5ea0faed85d8749cafd38732530ef35";
// connects to mongodb
mongoose.connect('localhost', 'test');
@@ -135,9 +133,9 @@ passport.use(new LocalStrategy(function(username, password, done) {
// credentials (in this case, an accessToken, refreshToken, and Facebook
// profile), and invoke a callback with a user object.
passport.use(new FacebookStrategy({
- clientID: FACEBOOK_APP_ID,
- clientSecret: FACEBOOK_APP_SECRET,
- callbackURL: "https://divid.no/auth/facebook/callback"
+ clientID: config.facebook.clientID,
+ clientSecret: config.facebook.clientSecret,
+ callbackURL: config.facebook.callbackURL
}, function(accessToken, refreshToken, profile, done) {
// asynchronous verification, for effect...
process.nextTick(function() {