Search in sources :

Example 1 with FilterNextSys

use of com.tremolosecurity.proxy.util.FilterNextSys in project OpenUnison by TremoloSecurity.

the class AzFilter method doFilter.

@Override
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
    NextSys nextSys = new FilterNextSys(chain);
    azSys.doAz(request, response, nextSys);
}
Also used : FilterNextSys(com.tremolosecurity.proxy.util.FilterNextSys) NextSys(com.tremolosecurity.proxy.util.NextSys) FilterNextSys(com.tremolosecurity.proxy.util.FilterNextSys)

Example 2 with FilterNextSys

use of com.tremolosecurity.proxy.util.FilterNextSys in project OpenUnison by TremoloSecurity.

the class AuthFilter method doFilter.

@Override
public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws IOException, ServletException {
    // HttpSession session = ((HttpServletRequest) req).getSession(true);
    // SharedSession.getSharedSession().registerSession(session);
    // HttpSession session = (HttpSession) req.getAttribute(ConfigFilter.AUTOIDM_SESSION);//((HttpServletRequest) req).getSession();
    NextSys next = new FilterNextSys(chain);
    authMgr.doAuth(req, resp, next);
}
Also used : NextSys(com.tremolosecurity.proxy.util.NextSys) FilterNextSys(com.tremolosecurity.proxy.util.FilterNextSys) FilterNextSys(com.tremolosecurity.proxy.util.FilterNextSys)

Example 3 with FilterNextSys

use of com.tremolosecurity.proxy.util.FilterNextSys in project OpenUnison by TremoloSecurity.

the class AuthMechMgr method doFilter.

@Override
public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws IOException, ServletException {
    HttpServletRequest request = (HttpServletRequest) req;
    HttpServletResponse response = (HttpServletResponse) resp;
    AuthController ac = (AuthController) request.getSession().getAttribute(ProxyConstants.AUTH_CTL);
    AuthStep curStep = ac.getCurrentStep();
    if (curStep != null) {
        curStep.setExecuted(true);
        curStep.setSuccess(false);
    }
    NextSys next = new FilterNextSys(chain);
    sys.doAuthMgr(request, response, next, curStep);
}
Also used : HttpServletRequest(javax.servlet.http.HttpServletRequest) HttpServletResponse(javax.servlet.http.HttpServletResponse) FilterNextSys(com.tremolosecurity.proxy.util.FilterNextSys) NextSys(com.tremolosecurity.proxy.util.NextSys) FilterNextSys(com.tremolosecurity.proxy.util.FilterNextSys) AuthStep(com.tremolosecurity.proxy.auth.util.AuthStep)

Aggregations

FilterNextSys (com.tremolosecurity.proxy.util.FilterNextSys)3 NextSys (com.tremolosecurity.proxy.util.NextSys)3 AuthStep (com.tremolosecurity.proxy.auth.util.AuthStep)1 HttpServletRequest (javax.servlet.http.HttpServletRequest)1 HttpServletResponse (javax.servlet.http.HttpServletResponse)1