app/middleware/oauth2.js
function (req, res) {
      req.session.loggedIn = true;
      if (config.oauth2.validateHostedDomain) {
        req.session.allowedDomain = config.oauth2.hostedDomain;
      }
      var redirect = req.session.oauth2return || '/';
      delete req.session.oauth2return;
      res.redirect(redirect);
    }
function (req, res) {
      req.session.loggedIn = true;
      if (config.oauth2.validateHostedDomain) {
        req.session.allowedDomain = config.oauth2.hostedDomain;
      }
      var redirect = req.session.oauth2return || '/';
      delete req.session.oauth2return;
      res.redirect(redirect);
    }
function ( req , res ) { req . session . loggedIn = true ; if ( config . oauth2 . validateHostedDomain ) { req . session . allowedDomain = config . oauth2 . hostedDomain ; } var redirect = req . session . oauth2return || '/' ; delete req . session . oauth2return ; res . redirect ( redirect ) ; }
Redirect back to the original page, if any
Redirect back to the original page if any