Hello All-
I recently switched from <http auto-config='true'...> to bean based configuration.
Background:
I have a pre-auth scenario (Apache + Shibboleth)
All the css, js and images are under /resources
I would like to use filters="none" for /resources (as I used to when using <http>), however it results in:
Code:Bean 'fsi'; nested exception is org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: The attribute 'filters' isn't allowed here.I do have WebExpressionVoter defined:Code:<bean id="fsi" class="org.springframework.security.web.access.intercept.FilterSecurityInterceptor"> <property name="authenticationManager" ref="authenticationManager" /> <property name="accessDecisionManager" ref="httpRequestAccessDecisionManager" /> <property name="securityMetadataSource"> <security:filter-security-metadata-source use-expressions="true"> <security:intercept-url pattern="/resources/**" filters="none" /> <security:intercept-url pattern="/login*" access="permitAll" /> <security:intercept-url pattern="/logout*" access="permitAll" /> <security:intercept-url pattern="/newlogin" access="hasRole('ROLE_USER')" /> <security:intercept-url pattern="/**" access="hasRole('ROLE_USER')" /> </security:filter-security-metadata-source> </property> </bean>
Is it not possible in bean based configurations?Code:<bean id="httpRequestAccessDecisionManager" class="org.springframework.security.access.vote.AffirmativeBased"> <property name="allowIfAllAbstainDecisions" value="false" /> <property name="decisionVoters"> <list> <ref bean="roleVoter" /> <ref bean="webExpVoter" /> </list> </property> </bean> <bean id="webExpVoter" class="org.springframework.security.web.access.expression.WebExpressionVoter" />
Any help will be highly appreciated.
Thanks.


Reply With Quote
