Updated LinkedIn auth routes to include mandatory "state" object

This commit is contained in:
Sahat Yalkabov
2014-02-27 13:14:09 -05:00
parent af4a2a33f6
commit 1bb2fd89a4

2
app.js
View File

@ -145,7 +145,7 @@ 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', passport.authenticate('linkedin', { state: 'SOME STATE' }));
app.get('/auth/linkedin/callback', passport.authenticate('linkedin', { successRedirect: '/', failureRedirect: '/login' }));
/**