mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 14:02:22 +00:00
Leave the information about authentication failure.
Otherwise it seems like Acegi doesn't really leave the detail of the failure anywhere. git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@9982 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
dd29ee69c6
commit
16f56e5229
1 file changed
+17
@@ -1,8 +1,12 @@
|
||||
package hudson.security;
|
||||
|
||||
import java.util.Properties;
|
||||
import java.util.logging.Logger;
|
||||
import java.util.logging.Level;
|
||||
import java.io.IOException;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.acegisecurity.AuthenticationException;
|
||||
import org.acegisecurity.ui.webapp.AuthenticationProcessingFilter;
|
||||
@@ -45,4 +49,17 @@ public class AuthenticationProcessingFilter2 extends AuthenticationProcessingFil
|
||||
return excMap.getProperty(failedClassName, getAuthenticationFailureUrl());
|
||||
}
|
||||
|
||||
/**
|
||||
* Leave the information about login failure.
|
||||
*
|
||||
* <p>
|
||||
* Otherwise it seems like Acegi doesn't really leave the detail of the failure anywhere.
|
||||
*/
|
||||
@Override
|
||||
protected void onUnsuccessfulAuthentication(HttpServletRequest request, HttpServletResponse response, AuthenticationException failed) throws IOException {
|
||||
super.onUnsuccessfulAuthentication(request, response, failed);
|
||||
LOGGER.log(Level.INFO, "Login attempt failed", failed);
|
||||
}
|
||||
|
||||
private static final Logger LOGGER = Logger.getLogger(AuthenticationProcessingFilter2.class.getName());
|
||||
}
|
||||
Reference in new issue
Block a user