SEC-1318: Correct logic for checking combination of session-management attributes.

This commit is contained in:
Luke Taylor
2009-12-07 22:40:47 +00:00
parent 075e7a15ad
commit 1dc4bb112e
2 changed files with 14 additions and 5 deletions

View File

@@ -729,6 +729,17 @@ public class HttpSecurityBeanDefinitionParserTests {
checkSessionRegistry();
}
@Test
public void externalSessionStrategyIsSupported() throws Exception {
setContext(
"<http auto-config='true'>" +
" <session-management session-authentication-strategy-ref='ss'/>" +
"</http>" +
"<b:bean id='ss' class='org.springframework.security.web.authentication.session.SessionFixationProtectionStrategy'/>"
+ AUTH_PROVIDER_XML);
//session-authentication-strategy-ref
}
@Test
public void externalSessionRegistryBeanIsConfiguredCorrectly() throws Exception {
setContext(