Add linkedin /auth and /auth/callback routes

This commit is contained in:
Sahat Yalkabov
2014-02-27 11:28:31 -05:00
parent 52ac42212d
commit b09223a0cc

2
app.js
View File

@ -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.