1
0
mirror of synced 2026-08-06 02:08:01 +00:00

SEC-1202: Removed SpringSecurityFilter and replaced with use of GenericFilterBean from spring-web

This commit is contained in:
Luke Taylor
2009-08-10 14:18:18 +00:00
parent b807f7cbdd
commit f536c80020
36 changed files with 225 additions and 251 deletions
@@ -25,6 +25,7 @@ import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.openid4java.consumer.ConsumerException;
import org.springframework.security.authentication.AuthenticationServiceException;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.AuthenticationException;
@@ -81,10 +82,15 @@ public class OpenIDAuthenticationProcessingFilter extends AbstractAuthentication
//~ Methods ========================================================================================================
public void afterPropertiesSet() throws Exception {
@Override
public void afterPropertiesSet() {
super.afterPropertiesSet();
if (consumer == null) {
consumer = new OpenID4JavaConsumer();
try {
consumer = new OpenID4JavaConsumer();
} catch (ConsumerException e) {
throw new IllegalArgumentException("Failed to initialize OpenID", e);
}
}
}