From c074270b549f62ec3a952bc3e3e522cd79586e30 Mon Sep 17 00:00:00 2001 From: Amir Zarrinkafsh Date: Mon, 8 Apr 2019 23:10:22 +1000 Subject: [PATCH] Fix attaching User/Groups headers for bypass strategy --- server/src/lib/routes/verify/GetSessionCookie.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/server/src/lib/routes/verify/GetSessionCookie.ts b/server/src/lib/routes/verify/GetSessionCookie.ts index 062a0681..cb6b7787 100644 --- a/server/src/lib/routes/verify/GetSessionCookie.ts +++ b/server/src/lib/routes/verify/GetSessionCookie.ts @@ -36,8 +36,6 @@ export default async function (req: Express.Request, res: Express.Response, const authorizationLevel = CheckAuthorizations(vars.authorizer, d.domain, d.path, username, groups, req.ip, authSession.authentication_level); - if (authorizationLevel > AuthorizationLevel.BYPASS) { - CheckInactivity(req, authSession, vars.config, vars.logger); - setUserAndGroupsHeaders(res, username, groups); - } + CheckInactivity(req, authSession, vars.config, vars.logger); + setUserAndGroupsHeaders(res, username, groups); } \ No newline at end of file