From c7c1676a688419f26ad0f35cdeb5b3c2f0f6977f Mon Sep 17 00:00:00 2001 From: Sahat Yalkabov Date: Tue, 3 Dec 2013 17:43:16 -0500 Subject: [PATCH] Github authentication routes and configuration --- app.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app.js b/app.js index 70568095a0..8f0e2fbcc4 100755 --- a/app.js +++ b/app.js @@ -63,6 +63,9 @@ app.post('/contact', contact.postContact); app.get('/auth/facebook', passport.authenticate('facebook', { scope: 'email' })); app.get('/auth/facebook/callback', passport.authenticate('facebook', { successRedirect: '/', failureRedirect: '/login' })); +app.get('/auth/github', passport.authenticate('github')); +app.get('/auth/github/callback', passport.authenticate('github', { successRedirect: '/', failureRedirect: '/login' })); + app.get('/auth/google', passport.authenticate('google', { scope: 'profile email' })); app.get('/auth/google/callback', passport.authenticate('google', { successRedirect: '/', failureRedirect: '/login' }));