Jun 19th, 2008, 12:51 AM
In my login page user has to enter 3 fields to login to the app
I am thinking of extending AutheticationProcessingFilter , extend the UserNamePasswordToken which has 3 values and extend Provider Manager to accept the new token
Is it the right way to do it?
If we set auto-config=true and use the below as specified in the docs
<beans:bean id="myFilter" class="com.mycompany.MySpecialAuthenticationFilter ">
How do I use the properties that were used by the framework in my filter without configuring?
If I give exactly the above specified in the docs, it is not able to instantiate the bean beacuse it is missing properties like defaultTargetURL
Jun 19th, 2008, 05:56 AM
You'll find logging in with extra information in the FAQ:
so this is a valid approach, apart from extending ProviderManager - you would implement a custom authentication provider.
Obviously you have to code a valid filter and if you extend AuthenticationProcessingFilter then you have to set the required properties.