jeeper
Apr 20th, 2011, 09:25 AM
Hello,
just some short questions. The DeligatingFilterProxy in web.xml points to the "springSecurityFilterChain", a FilterChainProxy. This "springSecurityFilterChain" is created by the namespace. The namespace contains for webapplication always those three filters (SecurityContextPersistenceFilter, ExceptionTranslationFilter, FilterSecurityInterceptor), others can be added by various elements. (form-login, usw.)
Now I read that its possible to write an individual FilterChainProxy, so that for some URLs I can define different filters. Do I declare the filters then in my spring config file? And can I still use the namespace with the "springSecurityFilterChain" for the other urls?
When I write custom filters and use them in the springSecurityFilterChain, can I also use them in my own FilterChainProxy? So that they can be used "twice"? Do I declare then multiple DeligatingFilterProxys in my web.xml?
Beside of the fact, that I might forget some filters in my own FilterChainProxy or order them incorrect or implement incorrect - is there anything which can go wrong when I use multiple FilterChainProxys?
Thank you :-)
just some short questions. The DeligatingFilterProxy in web.xml points to the "springSecurityFilterChain", a FilterChainProxy. This "springSecurityFilterChain" is created by the namespace. The namespace contains for webapplication always those three filters (SecurityContextPersistenceFilter, ExceptionTranslationFilter, FilterSecurityInterceptor), others can be added by various elements. (form-login, usw.)
Now I read that its possible to write an individual FilterChainProxy, so that for some URLs I can define different filters. Do I declare the filters then in my spring config file? And can I still use the namespace with the "springSecurityFilterChain" for the other urls?
When I write custom filters and use them in the springSecurityFilterChain, can I also use them in my own FilterChainProxy? So that they can be used "twice"? Do I declare then multiple DeligatingFilterProxys in my web.xml?
Beside of the fact, that I might forget some filters in my own FilterChainProxy or order them incorrect or implement incorrect - is there anything which can go wrong when I use multiple FilterChainProxys?
Thank you :-)