If you have a Spring bean (which it looks like you do) that implements UserDetailsService, then you can use the hivemind.library.SpringLookupFactory to provide the implementation for your service:
<implementation service-id="hivemind.acegi.dao.UserDetailsService"> <invoke-factory service-id="hivemind.library.SpringLookupFactory"> <lookup-bean name="memoryAuthenticationDao " /> </invoke-factory> </implementation> -----Original Message----- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Jesper Zedlitz Sent: Tuesday, July 11, 2006 8:32 AM To: users@tapestry.apache.org Subject: RE: Tapestry + Acegi + Spring integration James Carman wrote: > You can tell HiveMind to use a different password encoder if you want. > All you have to do is override the symbol > hivemind.acegi.dao.passwordEncoder: > <contribution configuration-id="hivemind.ApplicationDefaults"> > <default symbol="hivemind.acegi.dao.passwordEncoder" > value="org.acegisecurity.providers.encoding.Md5PasswordEncoder"/> > </contribution> > Ok, that helps. Now I do not have to re-encode the password anymore. To use a plaintext password I use this configuration: <contribution configuration-id="hivemind.ApplicationDefaults"> <default symbol="hivemind.acegi.dao.passwordEncoder" value="org.acegisecurity.providers.encoding.PlaintextPasswordEncoder"/> </contribution> <contribution configuration-id="hivemind.ApplicationDefaults"> <default symbol="hivemind.acegi.dao.systemWideSalt" value="" /> </contribution> It is important that in the case of a plaintext password the salt is an empty string. Otherwise it would be added after the password and the login would fail. Is there a way to get rid of my helper class that just forwards the UserDetails object? Right now the "implementation" element in my hivemodule.xml looks like this: <implementation service-id="hivemind.acegi.dao.UserDetailsService"> <invoke-factory> <construct class="de.zedlitz.tapestry.acegi.UserDetailsServiceImpl"> <set-object property="userDetailsService" value="spring:memoryAuthenticationDao"/> </construct> </invoke-factory> </implementation> Jesper -- Jesper Zedlitz eMail : [EMAIL PROTECTED] Homepage : http://www.zedlitz.de ICQ# : 23890711 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]