String userJson = AuthenticationUtils.userToCookieString(true, user);
Cookie cookie = new Cookie("nunaliit-auth",userJson);
cookie.setPath("/");
response.addCookie(cookie);
checkAndDispatch(user, new AuthHttpServletRequest(request,user), response, chain);
} catch (Exception e) {
throw new ServletException("Error while filtering HttpServletRequest",e);
}
}