Refactoring tumblr authorization

This commit is contained in:
Sahat Yalkabov
2013-12-07 00:50:37 -05:00
parent c9dcfd6292
commit 435b006967
3 changed files with 14 additions and 13 deletions

4
app.js
View File

@ -84,8 +84,8 @@ app.get('/auth/twitter/callback', passport.authenticate('twitter', { successRedi
app.get('/auth/foursquare', api.foursquareAuth);
app.get('/auth/foursquare/callback', api.foursquareCallback);
app.get('/auth/tumblr', passport.authorize('tumblr', { failureRedirect: '/api' }));
app.get('/auth/tumblr/callback', passport.authorize('tumblr', { failureRedirect: '/api' }), api.tumblrCallback);
app.get('/auth/tumblr', passport.authorize('tumblr'));
app.get('/auth/tumblr/callback', passport.authorize('tumblr', { failureRedirect: '/api' }), passportConf.tumblrCallback);
app.listen(app.get('port'), function() {
console.log('Express server listening on port ' + app.get('port'));