I went through that for DAYZZZZZZZZZZZZ. And I finally got what I posted
here to work. I could not get the example to work. But, if I read the
example correctly, there does not seem to be a way to use the requested uri
to direct the user to. Such as the issue I have.

I have successfully integrated jsf and acegi, but not where there are
multiple target uri's only a singe uri.


On 2/22/07, Cristi Toth <[EMAIL PROTECTED]> wrote:

Hi,

It is possible to use Acegi without any custom NavigationHandler
The most simple way to use it is described here:

http://www.javakaffee.de/blog/2006/07/04/jsfacegi-authentication-with-a-backing-bean/


On 2/22/07, Mick Knutson <[EMAIL PROTECTED]> wrote:
>
> Can you please send it to me? I would love to have it.
>
>
> On 2/22/07, Ricardo Tercero Lozano <[EMAIL PROTECTED] > wrote:
> >
> >
> > Hi, I faced this problem time ago.
> >
> > From my knowledge acegi is not compatible (or it is not prepared to
> > work to) with JSF navigation system. Acegi works with filters that do the
> > security access job (using FilterToBeanProxy to delegate to a Spring bean).
> >
> > I created a custom NavigationHandler to solve the problem. This custom
> > navigation hander checks the new URL against security constrains. I think
> > it's the only way to do this, because navigation occurs inside the server
> > and inside the Faces servlet.
> >
> > Ricardo.
> >
> >
> >
> > On 2/22/07, Mick Knutson < [EMAIL PROTECTED] > wrote:
> > >
> > > I have the following rule:
> > >
> > >     <!-- logon Navigation -->
> > >     <navigation-rule>
> > >         <display-name>Logon Navigation</display-name>
> > >         <description>Logon functions...</description>
> > >         <from-view-id>/views/common/logon.xhtml</from-view-id>
> > >
> > >         <navigation-case>
> > >             <from-outcome>success</from-outcome>
> > >             <to-view-id>/views/secure/index.xhtml</to-view-id>
> > >             <redirect/>
> > >         </navigation-case>
> > >         <navigation-case>
> > >             <from-outcome>failure</from-outcome>
> > >             <to-view-id>/views/secure/index.xhtml</to-view-id>
> > >         </navigation-case>
> > >     </navigation-rule>
> > >
> > >
> > > My issue is that I want to have any request, keep the requested
> > > to-view-id
> > >
> > > For example. If I click /views/secure/index.jsf, I expect to go to
> > > my logon.xhtml page, then to /views/secure/index.xhtml
> > >
> > > If I logout, then click /views/admin/admin.jsf I expect to go to my
> > > logon.xhmtl page, then to /views/admin/admin.xhtml
> > >
> > > Right now, no matter what the request (like admin.jsf), I keep
> > > getting sent to secured/index.xhtml
> > >
> > > --
> > > ---
> > > Thanks,
> > > Mick Knutson
> > >
> > > http://www.baselogic.com
> > > http://www.blincmagazine.com
> > > http://www.djmick.com
> > > http://www.myspace.com/djmick_dot_com
> > > http://www.thumpradio.com
> > > ---
> >
> >
> >
>
>
> --
> ---
> Thanks,
> Mick Knutson
>
> http://www.baselogic.com
> http://www.blincmagazine.com
> http://www.djmick.com
> http://www.myspace.com/djmick_dot_com
> http://www.thumpradio.com
> ---
>




--
---
Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/djmick_dot_com
http://www.thumpradio.com
---

Reply via email to