SEC-643: Fix to allow namespace configuration without remember-me authentication.
This commit is contained in:
parent
7854e36029
commit
b9561cc4e0
|
@ -66,7 +66,12 @@ public class HttpSecurityConfigPostProcessor implements BeanFactoryPostProcessor
|
||||||
|
|
||||||
RememberMeServices rememberMeServices = null;
|
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];
|
rememberMeServices = (RememberMeServices) beans.values().toArray()[0];
|
||||||
} else {
|
} else {
|
||||||
throw new SecurityConfigurationException("More than one RememberMeServices bean found.");
|
throw new SecurityConfigurationException("More than one RememberMeServices bean found.");
|
||||||
|
|
Loading…
Reference in New Issue