Browse Source

SEC-643: Fix to allow namespace configuration without remember-me authentication.

2.0.x
Luke Taylor 18 years ago
parent
commit
b9561cc4e0
  1. 7
      core/src/main/java/org/springframework/security/config/HttpSecurityConfigPostProcessor.java

7
core/src/main/java/org/springframework/security/config/HttpSecurityConfigPostProcessor.java

@ -66,7 +66,12 @@ public class HttpSecurityConfigPostProcessor implements BeanFactoryPostProcessor @@ -66,7 +66,12 @@ public class HttpSecurityConfigPostProcessor implements BeanFactoryPostProcessor
RememberMeServices rememberMeServices = null;
if (beans.size() > 0) {
if(beans.size() == 0) {
logger.debug("No RememberMeServices configured");
return;
}
if (beans.size() == 1) {
rememberMeServices = (RememberMeServices) beans.values().toArray()[0];
} else {
throw new SecurityConfigurationException("More than one RememberMeServices bean found.");

Loading…
Cancel
Save