From b09223a0cca733b86beaaaf384dcaefbd0812bd5 Mon Sep 17 00:00:00 2001 From: Sahat Yalkabov Date: Thu, 27 Feb 2014 11:28:31 -0500 Subject: [PATCH] Add linkedin /auth and /auth/callback routes --- app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app.js b/app.js index 4dc6f8716d..a99de89a86 100755 --- a/app.js +++ b/app.js @@ -145,6 +145,8 @@ app.get('/auth/google', passport.authenticate('google', { scope: 'profile email' app.get('/auth/google/callback', passport.authenticate('google', { successRedirect: '/', failureRedirect: '/login' })); app.get('/auth/twitter', passport.authenticate('twitter')); app.get('/auth/twitter/callback', passport.authenticate('twitter', { successRedirect: '/', failureRedirect: '/login' })); +app.get('/auth/linkedin', passport.authenticate('linkedin', { scope: ['r_basicprofile', 'r_emailaddress'] })); +app.get('/auth/linkedin/callback', passport.authenticate('linkedin', { successRedirect: '/', failureRedirect: '/login' })); /** * OAuth routes for API examples that require authorization.