Add MethodSecurityInterceptor, to more accurately reflect the capabilities offered by auto-config="true".
This commit is contained in:
parent
9728f48adf
commit
2655955a40
|
@ -83,10 +83,7 @@
|
||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
|
|
||||||
<bean id="filterInvocationInterceptor" class="org.springframework.security.intercept.web.FilterSecurityInterceptor">
|
<bean id="accessDecisionManager" class="org.springframework.security.vote.AffirmativeBased">
|
||||||
<property name="authenticationManager" ref="authenticationManager"/>
|
|
||||||
<property name="accessDecisionManager">
|
|
||||||
<bean class="org.springframework.security.vote.AffirmativeBased">
|
|
||||||
<property name="allowIfAllAbstainDecisions" value="false"/>
|
<property name="allowIfAllAbstainDecisions" value="false"/>
|
||||||
<property name="decisionVoters">
|
<property name="decisionVoters">
|
||||||
<list>
|
<list>
|
||||||
|
@ -95,7 +92,10 @@
|
||||||
</list>
|
</list>
|
||||||
</property>
|
</property>
|
||||||
</bean>
|
</bean>
|
||||||
</property>
|
|
||||||
|
<bean id="filterInvocationInterceptor" class="org.springframework.security.intercept.web.FilterSecurityInterceptor">
|
||||||
|
<property name="authenticationManager" ref="authenticationManager"/>
|
||||||
|
<property name="accessDecisionManager" ref="accessDecisionManager"/>
|
||||||
<property name="objectDefinitionSource">
|
<property name="objectDefinitionSource">
|
||||||
<value><![CDATA[
|
<value><![CDATA[
|
||||||
CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
|
CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
|
||||||
|
@ -142,4 +142,20 @@
|
||||||
<!-- This bean is optional; it isn't used by any other bean as it only listens and logs -->
|
<!-- This bean is optional; it isn't used by any other bean as it only listens and logs -->
|
||||||
<bean id="loggerListener" class="org.springframework.security.event.authentication.LoggerListener"/>
|
<bean id="loggerListener" class="org.springframework.security.event.authentication.LoggerListener"/>
|
||||||
|
|
||||||
|
<bean id="daacc" class="org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator"/>
|
||||||
|
|
||||||
|
<bean id="attributes" class="org.springframework.security.annotation.SecurityAnnotationAttributes"/>
|
||||||
|
|
||||||
|
<bean id="objectDefinitionSource" class="org.springframework.security.intercept.method.MethodDefinitionAttributes">
|
||||||
|
<property name="attributes"><ref local="attributes"/></property>
|
||||||
|
</bean>
|
||||||
|
|
||||||
|
<bean id="securityInterceptor" class="org.springframework.security.intercept.method.aopalliance.MethodSecurityInterceptor">
|
||||||
|
<property name="authenticationManager"><ref local="authentication"/></property>
|
||||||
|
<property name="accessDecisionManager"><ref local="accessDecisionManager"/></property>
|
||||||
|
<property name="objectDefinitionSource">
|
||||||
|
<ref local="objectDefinitionSource"/>
|
||||||
|
</property>
|
||||||
|
</bean>
|
||||||
|
|
||||||
</beans>
|
</beans>
|
Loading…
Reference in New Issue