/** * API login. * * @param request Request we are processing * @param response Response we are creating * @param config Login configuration describing how authentication * should be performed * * @exception IOException if an input/output error occurs */ public boolean authenticate(Request request, HttpServletResponse response) throws IOException, ServletException { return authenticate(request, response, this.context.getLoginConfig()); }
/** * API login. * * @param request Request we are processing * @param response Response we are creating * @param config Login configuration describing how authentication * should be performed * * @exception IOException if an input/output error occurs */ public boolean authenticate(Request request, HttpServletResponse response) throws IOException, ServletException { return authenticate(request, response, this.context.getLoginConfig()); }
/** * Authenticates the user making this request, based on the specified * login configuration. Return <code>true</code> if any specified * requirements have been satisfied, or <code>false</code> if we have * created a response challenge already. * * @param request Request we are processing * @param response Response we are creating * @param context The Context to which client of this class is attached. * @param authenticator the current authenticator. * @exception IOException if an input/output error occurs */ public boolean invokeAuthenticateDelegate(HttpRequest request, HttpResponse response, Context context, Authenticator authenticator, boolean calledFromAuthenticate) throws IOException { LoginConfig config = context.getLoginConfig(); return ((AuthenticatorBase) authenticator).authenticate( request, response, config); }
private int processSecurityCheck(HttpRequest hrequest, HttpResponse hresponse, LoginConfig config) throws IOException { // Special handling for form-based logins to deal with the case // where the login form (and therefore the "j_security_check" URI // to which it submits) might be outside the secured area String contextPath = this.context.getPath(); String requestURI = hrequest.getDecodedRequestURI(); if (requestURI.startsWith(contextPath) && requestURI.endsWith(Constants.FORM_ACTION)) { if (!authenticate(hrequest, hresponse, config)) { if (log.isLoggable(Level.FINE)) { String msg = " Failed authenticate() test ??" + requestURI; log.log(Level.FINE, neutralizeForLog(msg)); } return END_PIPELINE; } } return INVOKE_NEXT; }
/** * Authenticate the user making this request, based on the login * configuration of the {@link Context} with which this Authenticator is * associated. Return <code>true</code> if any specified constraint has * been satisfied, or <code>false</code> if we have created a response * challenge already. * * @param request Request we are processing * @param response Response we are populating * * @exception IOException if an input/output error occurs */ @Override public boolean authenticate(Request request, HttpServletResponse response) throws IOException { if (context == null || context.getLoginConfig() == null) { return true; } return authenticate(request, response, context.getLoginConfig()); }
/** * Authenticate the user making this request, based on the login * configuration of the {@link Context} with which this Authenticator is * associated. Return <code>true</code> if any specified constraint has * been satisfied, or <code>false</code> if we have created a response * challenge already. * * @param request Request we are processing * @param response Response we are populating * * @exception IOException if an input/output error occurs */ @Override public boolean authenticate(Request request, HttpServletResponse response) throws IOException { if (context == null || context.getLoginConfig() == null) { return true; } return authenticate(request, response, context.getLoginConfig()); }
return authBase.authenticate(this, (HttpResponse) getResponse(), context.getLoginConfig()); } catch (Exception ex) {
result = ((AuthenticatorBase) authenticator).authenticate( request, response, config);
if (requestURI.startsWith(contextPath) && requestURI.endsWith(Constants.FORM_ACTION)) { if (!authenticate(request, response, config)) { if (log.isDebugEnabled()) log.debug(" Failed authenticate() test ??" + requestURI ); log.debug(" Calling authenticate()"); if (!authenticate(request, response, config)) { if (log.isDebugEnabled()) { log.debug(" Failed authenticate() test");
if (requestURI.startsWith(contextPath) && requestURI.endsWith(Constants.FORM_ACTION)) { if (!authenticate(request, response, config)) { if (log.isDebugEnabled()) log.debug(" Failed authenticate() test ??" + requestURI ); log.debug(" Calling authenticate()"); if (!authenticate(request, response, config)) { if (log.isDebugEnabled()) { log.debug(" Failed authenticate() test");
if (requestURI.startsWith(contextPath) && requestURI.endsWith(Constants.FORM_ACTION)) { if (!authenticate(request, response)) { if (log.isDebugEnabled()) { log.debug(" Failed authenticate() test ??" + requestURI ); decodedRequestURI.equals( savedRequest.getDecodedRequestURI())) { if (!authenticate(request, response)) { if (log.isDebugEnabled()) { log.debug(" Failed authenticate() test"); log.debug(" Calling authenticate()"); if (!authenticate(request, response)) { if (log.isDebugEnabled()) { log.debug(" Failed authenticate() test");
if (requestURI.startsWith(contextPath) && requestURI.endsWith(Constants.FORM_ACTION)) { if (!authenticate(request, response, config)) { if (CatalinaLogger.AUTH_LOGGER.isDebugEnabled()) CatalinaLogger.AUTH_LOGGER.debug(" Failed authenticate() test ??" + requestURI ); CatalinaLogger.AUTH_LOGGER.debug(" Calling authenticate()"); if (!authenticate(request, response, config)) { if (CatalinaLogger.AUTH_LOGGER.isDebugEnabled()) { CatalinaLogger.AUTH_LOGGER.debug(" Failed authenticate() test");
if (requestURI.startsWith(contextPath) && requestURI.endsWith(Constants.FORM_ACTION)) { if (!authenticate(request, response, config)) { if (log.isDebugEnabled()) log.debug(" Failed authenticate() test ??" + requestURI ); log.debug(" Calling authenticate()"); if (!authenticate(request, response, config)) { if (log.isDebugEnabled()) { log.debug(" Failed authenticate() test");
if (requestURI.startsWith(contextPath) && requestURI.endsWith(Constants.FORM_ACTION)) { if (!authenticate(request, response, config)) { if (log.isDebugEnabled()) log.debug(" Failed authenticate() test ??" + requestURI ); log.debug(" Calling authenticate()"); if (!authenticate(request, response, config)) { if (log.isDebugEnabled()) { log.debug(" Failed authenticate() test");
if (requestURI.startsWith(contextPath) && requestURI.endsWith(Constants.FORM_ACTION)) { if (!authenticate(request, response, config)) { if (log.isDebugEnabled()) log.debug(" Failed authenticate() test ??" + requestURI ); log.debug(" Calling authenticate()"); if (!authenticate(request, response, config)) { if (log.isDebugEnabled()) { log.debug(" Failed authenticate() test");
if (requestURI.startsWith(contextPath) && requestURI.endsWith(Constants.FORM_ACTION)) { if (!authenticate(request, response, config)) { if (log.isDebugEnabled()) log.debug(" Failed authenticate() test ??" + requestURI ); log.debug(" Calling authenticate()"); if (!authenticate(request, response, config)) { if (log.isDebugEnabled()) { log.debug(" Failed authenticate() test");
if (requestURI.startsWith(contextPath) && requestURI.endsWith(Constants.FORM_ACTION)) { if (!authenticate(request, response, config)) { if (log.isDebugEnabled()) log.debug(" Failed authenticate() test ??" + requestURI ); log.debug(" Calling authenticate()"); if (!authenticate(request, response, config)) { if (log.isDebugEnabled()) { log.debug(" Failed authenticate() test");