Hi Andreas and James,

Please correct me if I am wrong. I am trying to understand what needs to be
done. The UserDetailsService is something where the user is returned back
given a userid. So we need to inject the visit object into the
UserDetailsService? and then set it. I agree that the user might not be able
to successfully login due to a bad password. So is there any other method
say something like yet another service that can be invoked in the chain on
successful login or something of such sort.

Or is it something like tapestry-acegi has a hook which I can use to do
this?

Thanks,
Srini.

On 1/19/07, James Carman <[EMAIL PROTECTED]> wrote:

This is the main reason that I wrote Tapestry-Acegi, so that you get
the best of both worlds.  You can get at all the good Tapestry
framework stuff and have the Acegi stuff too.


On 1/19/07, andyhot <[EMAIL PROTECTED]> wrote:
> Actually, I'm not sure that the UserDetailsService is the best option
> for setting up visit,
> (cause the user may not eventually have the correct password) but
anyway,
> here's how it can be done using hivemind and tapestry-acegi:
>
> <implementation service-id="hivemind.acegi.dao.UserDetailsService">
>
>         <invoke-factory service-id="hivemind.BuilderFactory"
> model="singleton">
>            <construct class="my.custom.UserDetailsService">
>                <set-service property="userDao" service-id="..."/>
>                <set-service property="stateManager"
> service-id="tapestry.state.ApplicationStateManager"/>
>            </construct>
>         </invoke-factory>
>     </implementation>
>
> and also take a look at
>
http://tapestry.apache.org/tapestry4.1/tapestry-framework/apidocs/org/apache/tapestry/engine/state/ApplicationStateManager.html
>
>
>
> Srinivas Yermal wrote:
> > Hi Andreas,
> >
> > Thanks for the response. Does tapestry-acegi automagically fill-in the
> > user
> > details into the visit object? Or should I do something?
> >
> > I use spring for my acegi declarations and specify my
> > UserDetailsService in
> > the DaoAuthenticationProvider.  You mention ASO. How would I go about
> > doing
> > it through state objects?
> >
> > Regards,
> > Srini.
> >
> > On 1/19/07, andyhot <[EMAIL PROTECTED]> wrote:
> >>
> >> i've been using tapestry-acegi, so perhaps this might not be helpful
in
> >> your case...
> >>
> >> so, how are you declaring the UserDetailsService implementation to be
> >> used by acegi ?
> >>
> >> If you could inject into hivemind's ApplicationStateManager you would
be
> >> able to
> >> access any ASO you'd like.
> >>
> >>
> >
>
>
> --
> Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
> Tapestry / Tacos developer
> Open Source / J2EE Consulting
>
>
> ---------------------------------------------------------------------
> 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]




--
http://www.indygosoft.com

Reply via email to