3 var env = require('gitter-web-env');
4 var identifyRoute = env.middlewares.identifyRoute;
6 var passport = require('passport');
7 var trackLoginForProvider = require('../../web/middlewares/track-login-for-provider');
8 var rememberMe = require('../../web/middlewares/rememberme-middleware');
9 var ensureLoggedIn = require('../../web/middlewares/ensure-logged-in');
10 var redirectAfterLogin = require('../../web/middlewares/redirect-after-login');
11 var passportCallbackForStrategy = require('../../web/middlewares/passport-callback-for-strategy');
16 identifyRoute('login-gitlab'),
17 trackLoginForProvider('gitlab'),
18 passport.authorize('gitlab', { failWithError: true })
22 identifyRoute('login-callback'),
23 passportCallbackForStrategy('gitlab', { failWithError: true }),
25 rememberMe.generateRememberMeTokenMiddleware,
29 module.exports = routes;