Package ca.carleton.gcrc.auth.common

Examples of ca.carleton.gcrc.auth.common.AuthHttpServletRequest


        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);
      }
    }
View Full Code Here


        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);
      }
    }
View Full Code Here

      likeResponseType = true;
      response = (HttpServletResponse)servletResponse;
    }
   
    if (servletRequest instanceof AuthHttpServletRequest && likeResponseType) {
      AuthHttpServletRequest request = (AuthHttpServletRequest) servletRequest;
      try {
        checkAuthentication(request, response, chain);
      } catch (Exception e) {
        throw new ServletException("Error while filtering AuthHttpServletRequest",e);
      }
View Full Code Here

      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);
     
    }
  }
View Full Code Here

       * the admin user with the default (probably anon) user if already really
       * logged in....
       */
      String auth = request.getHeader("Authorization");
      if (null == auth) {
        AuthHttpServletRequest chainedRequest = new AuthHttpServletRequest(request, dbUser);
        logger.info(this.getClass().getName()+" auth attached - path:"+path+" user:"+dbUser);
        return(chainedRequest);
      }
    }
    return(request);
View Full Code Here

      likeResponseType = true;
      response = (HttpServletResponse)servletResponse;
    }
   
    if (servletRequest instanceof AuthHttpServletRequest && likeResponseType) {
      AuthHttpServletRequest request = (AuthHttpServletRequest) servletRequest;
      try {
        checkAuthentication(request, response, chain);
      } catch (Exception e) {
        throw new ServletException("Error while filtering AuthHttpServletRequest",e);
      }
View Full Code Here

      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);
     
    }
  }
View Full Code Here

       * the admin user with the default (probably anon) user if already really
       * logged in....
       */
      String auth = request.getHeader("Authorization");
      if (null == auth) {
        AuthHttpServletRequest chainedRequest = new AuthHttpServletRequest(request, dbUser);
        logger.info(this.getClass().getName()+" auth attached - path:"+path+" user:"+dbUser);
        return(chainedRequest);
      }
    }
    return(request);
View Full Code Here

        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);
      }
    }
View Full Code Here

       * the admin user with the default (probably anon) user if already really
       * logged in....
       */
      String auth = request.getHeader("Authorization");
      if (null == auth) {
        AuthHttpServletRequest chainedRequest = new AuthHttpServletRequest(request, dbUser);
        logger.info(this.getClass().getName()+" auth attached - path:"+path+" user:"+dbUser);
        return(chainedRequest);
      }
    }
    return(request);
View Full Code Here

TOP

Related Classes of ca.carleton.gcrc.auth.common.AuthHttpServletRequest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.