Thiago H de Paula Figueiredo wrote:
> What do I do if I want to use tapestry-acegi leaving the acegi
> configuration in spring instead of HiveMind?
>
You have your own org.acegisecurity.userdetails.UserDetailsService and want
to use it with tapestry-acegi? No problem! 

Here is an example how to do it. First we need a Spring bean for that
UserDetailsService (in your applicationContext.xml)
 <bean id="userDbAuthenticationDao" 
       class="jesper.UserDetailsServiceImpl"
       name="authenticationDao">
    <!-- whatever your implementation needs -->
 </bean>
(That replaced the "memoryAuthenticationDao" from my example.)

We reference this bean in hivemodule.xml
  <implementation service-id="hivemind.acegi.dao.UserDetailsService">
    <invoke-factory service-id="hivemind.lib.SpringLookupFactory">
       <lookup-bean name="authenticationDao" />
    </invoke-factory>
  </implementation>

Jesper

-- 
 Jesper Zedlitz   E-Mail   : [EMAIL PROTECTED]
                  Homepage : http://www.zedlitz.de
                  ICQ#     : 23890711


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to