1
0
mirror of synced 2026-05-22 21:33:16 +00:00

Added extra test to itest/context as POC of using extra interceptor with http ns.

This commit is contained in:
Luke Taylor
2010-02-11 01:48:00 +00:00
parent 23511c930f
commit 70ef0d8b3e
3 changed files with 108 additions and 1 deletions
@@ -558,10 +558,12 @@ public class HttpSecurityBeanDefinitionParserTests {
// Decorated user-filters should be added to stack. The others should be ignored.
String contextHolderFilterClass = SecurityContextHolderAwareRequestFilter.class.getName();
String contextPersistenceFilterClass = SecurityContextPersistenceFilter.class.getName();
System.setProperty("customFilterRef", "userFilter1");
setContext(
"<b:bean class='org.springframework.beans.factory.config.PropertyPlaceholderConfigurer'/>" +
"<http auto-config='true'>" +
" <custom-filter position='FIRST' ref='userFilter1' />" +
" <custom-filter position='FIRST' ref='${customFilterRef}' />" +
" <custom-filter after='LOGOUT_FILTER' ref='userFilter' />" +
" <custom-filter before='SECURITY_CONTEXT_FILTER' ref='userFilter3'/>" +
"</http>" + AUTH_PROVIDER_XML +