|
|
|
@ -83,17 +83,17 @@ |
|
|
|
</property> |
|
|
|
</property> |
|
|
|
</bean> |
|
|
|
</bean> |
|
|
|
|
|
|
|
|
|
|
|
<bean id="accessDecisionManager" class="org.springframework.security.vote.AffirmativeBased"> |
|
|
|
<bean id="accessDecisionManager" class="org.springframework.security.access.vote.AffirmativeBased"> |
|
|
|
<property name="allowIfAllAbstainDecisions" value="false"/> |
|
|
|
<property name="allowIfAllAbstainDecisions" value="false"/> |
|
|
|
<property name="decisionVoters"> |
|
|
|
<property name="decisionVoters"> |
|
|
|
<list> |
|
|
|
<list> |
|
|
|
<bean class="org.springframework.security.vote.RoleVoter"/> |
|
|
|
<bean class="org.springframework.security.access.vote.RoleVoter"/> |
|
|
|
<bean class="org.springframework.security.vote.AuthenticatedVoter"/> |
|
|
|
<bean class="org.springframework.security.access.vote.AuthenticatedVoter"/> |
|
|
|
</list> |
|
|
|
</list> |
|
|
|
</property> |
|
|
|
</property> |
|
|
|
</bean> |
|
|
|
</bean> |
|
|
|
|
|
|
|
|
|
|
|
<bean id="filterInvocationInterceptor" class="org.springframework.security.intercept.web.FilterSecurityInterceptor"> |
|
|
|
<bean id="filterInvocationInterceptor" class="org.springframework.security.web.intercept.FilterSecurityInterceptor"> |
|
|
|
<property name="authenticationManager" ref="authenticationManager"/> |
|
|
|
<property name="authenticationManager" ref="authenticationManager"/> |
|
|
|
<property name="accessDecisionManager" ref="accessDecisionManager"/> |
|
|
|
<property name="accessDecisionManager" ref="accessDecisionManager"/> |
|
|
|
<property name="objectDefinitionSource"> |
|
|
|
<property name="objectDefinitionSource"> |
|
|
|
@ -107,31 +107,31 @@ |
|
|
|
</property> |
|
|
|
</property> |
|
|
|
</bean> |
|
|
|
</bean> |
|
|
|
|
|
|
|
|
|
|
|
<bean id="rememberMeServices" class="org.springframework.security.ui.rememberme.TokenBasedRememberMeServices"> |
|
|
|
<bean id="rememberMeServices" class="org.springframework.security.web.authentication.rememberme.TokenBasedRememberMeServices"> |
|
|
|
<property name="userDetailsService" ref="userDetailsService"/> |
|
|
|
<property name="userDetailsService" ref="userDetailsService"/> |
|
|
|
<property name="key" value="changeThis"/> |
|
|
|
<property name="key" value="changeThis"/> |
|
|
|
</bean> |
|
|
|
</bean> |
|
|
|
|
|
|
|
|
|
|
|
<bean id="authenticationManager" class="org.springframework.security.providers.ProviderManager"> |
|
|
|
<bean id="authenticationManager" class="org.springframework.security.authentication.ProviderManager"> |
|
|
|
<property name="providers"> |
|
|
|
<property name="providers"> |
|
|
|
<list> |
|
|
|
<list> |
|
|
|
<ref local="daoAuthenticationProvider"/> |
|
|
|
<ref local="daoAuthenticationProvider"/> |
|
|
|
<bean class="org.springframework.security.providers.anonymous.AnonymousAuthenticationProvider"> |
|
|
|
<bean class="org.springframework.security.authentication.AnonymousAuthenticationProvider"> |
|
|
|
<property name="key" value="changeThis"/> |
|
|
|
<property name="key" value="changeThis"/> |
|
|
|
</bean> |
|
|
|
</bean> |
|
|
|
<bean class="org.springframework.security.providers.rememberme.RememberMeAuthenticationProvider"> |
|
|
|
<bean class="org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationProvider"> |
|
|
|
<property name="key" value="changeThis"/> |
|
|
|
<property name="key" value="changeThis"/> |
|
|
|
</bean> |
|
|
|
</bean> |
|
|
|
</list> |
|
|
|
</list> |
|
|
|
</property> |
|
|
|
</property> |
|
|
|
</bean> |
|
|
|
</bean> |
|
|
|
|
|
|
|
|
|
|
|
<bean id="daoAuthenticationProvider" class="org.springframework.security.providers.dao.DaoAuthenticationProvider"> |
|
|
|
<bean id="daoAuthenticationProvider" class="org.springframework.security.authentication.dao.DaoAuthenticationProvider"> |
|
|
|
<property name="userDetailsService" ref="userDetailsService"/> |
|
|
|
<property name="userDetailsService" ref="userDetailsService"/> |
|
|
|
</bean> |
|
|
|
</bean> |
|
|
|
|
|
|
|
|
|
|
|
<!-- UserDetailsService is the most commonly frequently Acegi Security interface implemented by end users --> |
|
|
|
<!-- UserDetailsService is the most commonly frequently Acegi Security interface implemented by end users --> |
|
|
|
<bean id="userDetailsService" class="org.springframework.security.userdetails.memory.InMemoryDaoImpl"> |
|
|
|
<bean id="userDetailsService" class="org.springframework.security.core.userdetails.memory.InMemoryDaoImpl"> |
|
|
|
<property name="userProperties"> |
|
|
|
<property name="userProperties"> |
|
|
|
<bean class="org.springframework.beans.factory.config.PropertiesFactoryBean"> |
|
|
|
<bean class="org.springframework.beans.factory.config.PropertiesFactoryBean"> |
|
|
|
<property name="location" value="/WEB-INF/users.properties"/> |
|
|
|
<property name="location" value="/WEB-INF/users.properties"/> |
|
|
|
@ -140,21 +140,21 @@ |
|
|
|
</bean> |
|
|
|
</bean> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 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.authentication.event.LoggerListener"/> |
|
|
|
|
|
|
|
|
|
|
|
<bean id="daacc" class="org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator"/> |
|
|
|
<bean id="daacc" class="org.springframework.aop.framework.autoproxy.DefaultAdvisorAutoProxyCreator"/> |
|
|
|
|
|
|
|
|
|
|
|
<bean id="attributes" class="org.springframework.security.annotation.SecurityAnnotationAttributes"/> |
|
|
|
<bean id="attributes" class="org.springframework.security.access.annotation.SecurityAnnotationAttributes"/> |
|
|
|
|
|
|
|
|
|
|
|
<bean id="objectDefinitionSource" class="org.springframework.security.intercept.method.MethodDefinitionAttributes"> |
|
|
|
<bean id="securityMetadataSource" class="org.springframework.security.access.intercept.method.MethodDefinitionAttributes"> |
|
|
|
<property name="attributes"><ref local="attributes"/></property> |
|
|
|
<property name="attributes"><ref local="attributes"/></property> |
|
|
|
</bean> |
|
|
|
</bean> |
|
|
|
|
|
|
|
|
|
|
|
<bean id="securityInterceptor" class="org.springframework.security.intercept.method.aopalliance.MethodSecurityInterceptor"> |
|
|
|
<bean id="securityInterceptor" class="org.springframework.security.intercept.method.aopalliance.MethodSecurityInterceptor"> |
|
|
|
<property name="authenticationManager"><ref local="authenticationManager"/></property> |
|
|
|
<property name="authenticationManager"><ref local="authenticationManager"/></property> |
|
|
|
<property name="accessDecisionManager"><ref local="accessDecisionManager"/></property> |
|
|
|
<property name="accessDecisionManager"><ref local="accessDecisionManager"/></property> |
|
|
|
<property name="objectDefinitionSource"> |
|
|
|
<property name="securityMetadataSource"> |
|
|
|
<ref local="objectDefinitionSource"/> |
|
|
|
<ref local="securityMetadataSource"/> |
|
|
|
</property> |
|
|
|
</property> |
|
|
|
</bean> |
|
|
|
</bean> |
|
|
|
|
|
|
|
|
|
|
|
|