diff options
author | Dennis Eriksen <dennis.se@gmail.com> | 2013-04-25 02:12:34 +0200 |
---|---|---|
committer | Dennis Eriksen <dennis.se@gmail.com> | 2013-04-25 02:12:34 +0200 |
commit | 4dd7550b87386114ba4e86be17afbaa4d3fa11d6 (patch) | |
tree | fda64ece3ad24151f17c25f8c234755b753801a3 /router.js | |
parent | test commit to dev branch (diff) | |
download | Divid-4dd7550b87386114ba4e86be17afbaa4d3fa11d6.tar.gz |
addedpassport config file and did some other stuff
Diffstat (limited to '')
-rw-r--r-- | router.js | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -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() { |