I have access to Peter's book and it has helped in general. I still need a little push if somebody can provide.
In the older code we have the following filrerChainProxy:
- httpIntegration
- channelProcessingFilter
- authenticationProcessingFilter
- filterSecurityInterceptor
I am OK with #1, #2 and #4. #3 is the issue. I am not quite sure how this works. Here is an example of the bean definition in the old code:
Code:
<bean id="authenticationProcessingFilter"
class="o.s.s.ui.x509.X509ProcessingFilter">
<property name="authenticationManager" ref="authenticationManager" />
</bean>
<bean id="authenticationManager"
class="o.s.s.providers.ProviderManager">
<property name="providers">
<list>
<ref bean="authenticationProvider" />
</list>
</property>
</bean>
<bean id="authenticationProvider"
class="o.s.s.providers.x509.X509AuthenticationProvider">
<property name="x509AuthoritiesPopulator" ref="authoritiesPopulator" />
</bean>
<bean id="authoritiesPopulator"
class="com.custom.package.UserX509AuthoritiesPopulator">
<property name="userDetailsService" ref="userDetailsService" />
</bean>
The bean userDetailsService is a custom Class that implements a custom UserService interface. The UserService interface extends UserDetailsService.
So what classes do I now use since X509AuthenticationProvider is no longer around in Spring 3.0.5 and where do I put this in my security context file? Does it go in the same spot as the FilterChainProxy I noted above? I keep getting confused about "preauth". What exactly does this mean?
Any help would be greatly appreciated!