I'm using Spring security 3.0.2.
I've got a custom provider custom authentication provider that logs me in just fine using usernmae and password.
I need to grab another parameter off the http request to complete the authentication.
I subclassed WebAuthenticationDetails, added my third atribute and set it in doPopulateAdditionalInformation(HttpServletRequest request).
I added <bean/> entries to ask Spring to substitute my class for WebAuthenticationDetails.
In my authenticate(Authentication authentication) I call getDetails(). It's not my subclass.
Is this approach sound?
If so, what am I missing?
<beans:bean id="webAuthenticationDetails" class="com.my.security.IWebAuthenticationDetails">
</beans:bean>
<beans:bean id="authenticationDetailsSource"
class="org.springframework.security.authentication .AuthenticationDetailsSourceImpl">
<beansroperty name="clazz" value="com.my.security.IWebAuthenticationDetails">
<ref local="webAuthenticationDetails"></ref>
</beansroperty>
</beans:bean>
Thanks!


roperty name="clazz" value="com.my.security.IWebAuthenticationDetails">
Reply With Quote

