<sec:http auto-config="false" access-denied-page="/login/accessDenied.jsp" entry-point-ref="authenticationEntryPoint">
<sec:intercept-url pattern="/login/securityLogin.jsp*" access="IS_AUTHENTICATED_ANONYMOUSLY"/>
<sec:intercept-url pattern="/**" requires-channel="any" />
<sec:custom-filter ref="concurrentSessionFilter"/>
<sec:custom-filter ref="securityContextPersistenceFilter"/>
<sec:custom-filter ref="logoutFilter"/>
<sec:custom-filter ref="simpleSSOFilter"/>
<sec:custom-filter ref="authenticationProcessingFilter"/>
<sec:custom-filter ref="securityContextHolderAwareRequestFilter"/>
<sec:custom-filter ref="rememberMeAuthenticationFilter"/>
<sec:custom-filter ref="anonymousAuthenticationFilter"/>
<sec:custom-filter ref="exceptionTranslationFilter"/>
<sec:custom-filter ref="filterSecurityInterceptor"/>
<sec:session-management invalid-session-url="/login/securityLogin.jsp">
<sec:concurrency-control error-if-maximum-exceeded="true" max-sessions="1" session-registry-ref="sessionRegistry" expired-url="/login/securityLogin.jsp"/>
</sec:session-management>
</sec:http>
In this one all this filters are custom implementation except simpleSSOFilter all are customized version of sprinf standard security filters.
The problem is while specifying position for this filter chain like below its not working
<sec:http auto-config="false" access-denied-page="/login/accessDenied.jsp" entry-point-ref="authenticationEntryPoint">
<sec:intercept-url pattern="/login/securityLogin.jsp*" access="IS_AUTHENTICATED_ANONYMOUSLY"/>
<sec:intercept-url pattern="/**" requires-channel="any" />
<sec:custom-filter ref="concurrentSessionFilter" position="FIRST"/>
<sec:custom-filter ref="securityContextPersistenceFilter" after="CONCURRENT_SESSION_FILTER"/>
<sec:custom-filter ref="logoutFilter" after="SECURITY_CONTEXT_FILTER"/>
<sec:custom-filter ref="simpleSSOFilter" after="LOGOUT_FILTER"/>
<sec:custom-filter ref="authenticationProcessingFilter" after="LOGOUT_FILTER"/>
<sec:custom-filter ref="securityContextHolderAwareRequestFilter" after="FORM_LOGIN_FILTER"/>
<sec:custom-filter ref="rememberMeAuthenticationFilter" after="SERVLET_API_SUPPORT_FILTER"/>
<sec:custom-filter ref="anonymousAuthenticationFilter" after="REMEMBER_ME_FILTER"/>
<sec:custom-filter ref="exceptionTranslationFilter" after="ANONYMOUS_FILTER"/>
<sec:custom-filter ref="filterSecurityInterceptor" after="EXCEPTION_TRANSLATION_FILTER"/>
<sec:session-management invalid-session-url="/login/securityLogin.jsp">
<sec:concurrency-control error-if-maximum-exceeded="true" max-sessions="1" session-registry-ref="sessionRegistry" expired-url="/login/securityLogin.jsp"/>
</sec:session-management>
</sec:http>
I want this simpleSSOFIlter to be executed after the LOGOUT_FILTER.
Please let me know if any one knows how to configure all this custom filters.
Acegi-Security was so straight forward where Spring security is getting confused with this configuration.


Reply With Quote