title: Request timed out while trying to do Google Auth in Node.js app (v 0.10.13)
body: <p>I'm using <a href="http://passportjs.org/" rel="nofollow">Passport</a> to do Google authentication in my Node.js application. I'm hosting it on Heroku. The issue that I'm facing is that it's not returning to the success callback that I have specified in my nodejs code. I expect a <code>Succesfuly logged in</code> message on successful login. When I checked the Heroku logs, it shows a `request time out</p>
  
  <p>Here is my Node.js code</p>
  
  <pre><code>var express = require('express')
    , routes = require('./routes')
    , user = require('./routes/user')
    , http = require('http')
    , path = require('path');
  
  var app = express();
  
  var hbs = require('hbs');
  
  var passport = require('passport')
    , GoogleStrategy = require('passport-google').Strategy;
  
  passport.use(new GoogleStrategy({
      returnURL: 'http://floating-citadel-4714.herokuapp.com/auth/google/return',
      realm: 'http://floating-citadel-4714.herokuapp.com'
      },
      function(identifier, profile, done){
          console.log('Success');
          console.log(identifier);
          console.log(profile);
              }
              ));
  
  // all environments
  app.set('port', process.env.PORT || 3000);
  app.set('views', __dirname + '/views');
  app.set('view engine', 'html');
  app.engine('html',hbs.__express);
  app.use(express.favicon());
  app.use(express.logger('dev'));
  app.use(express.bodyParser());
  app.use(express.methodOverride());
  app.use(app.router);
  app.use(express.static(path.join(__dirname, 'public')));
  
  // development only
  if ('development' == app.get('env')) {
    app.use(express.errorHandler());
  }
  
  
  app.get('/auth',function(req,resp){
      resp.sendfile('./views/auth.html');
  });
  app.get('/auth/google',passport.authenticate('google'));
  app.get('/auth/google/return',
          passport.authenticate('google', { successRedirect: '/success',
                            failureRedirect: '/error' }));
  app.get('/success',function(req,resp){
      resp.send('Succesfuly logged in');
  });
  app.get('/error',function(req,resp){
      resp.send('Error Loging in');
  });
  http.createServer(app).listen(app.get('port'), function(){
    console.log('Express server listening on port ' + app.get('port'));
  });
  </code></pre>