I have created a myfaces wiki on the same subject, a simpler solution. see:

http://wiki.apache.org/myfaces/JSF_and_Acegi
 

-----Message d'origine-----
De : Martin Grotzke [mailto:[EMAIL PROTECTED] 
Envoyé : mardi 4 juillet 2006 12:02
À : MyFaces Discussion
Objet : RE: Acegi authentication with several "outcomes"

Hello,

i found this description of an integration of acegi with jsf:

http://jroller.com/page/fairTrade?entry=integrating_acegi_and_jsf_revisited

this solution replaces the acegi AuthenticationProcessingFilter with a
backing bean, which is directly invoked from the login page.

With that i am able to forward the user to several outcomes.

The only thing that i have left to do is write my own AuthenticationProvider
that can return different Authentication results, it seems as if this would
be the right way.

Cheers,
Martin



On Tue, 2006-07-04 at 10:51 +0200, Coloma Escribano, Ignacio wrote:
> Seems that you can achieve that requirement with a Filter and a simple
redirect on a condition.
> 
> To be more specific would need more details :)
> 
> -----Mensaje original-----
> De: L Frohman [mailto:[EMAIL PROTECTED] Enviado el: viernes, 30 de 
> junio de 2006 10:22
> Para: 'MyFaces Discussion'
> Asunto: RE: Acegi authentication with several "outcomes"
> 
> You would have to "customize" acegi, but since it is open source, it 
> should possible. Extend some of the acegi classes to add the 3rd 
> condition. You could download the source code and take a look to see 
> if you think that would be an option for you.
> 
> -----Message d'origine-----
> De : Martin Grotzke [mailto:[EMAIL PROTECTED] Envoyé : vendredi 30 juin 
> 2006 10:06 À : MyFaces Discussion Objet : Acegi authentication with 
> several "outcomes"
> 
> Hello all,
> 
> we would like to use Acegi but have a "special" requirement.
> Besides the usual "authentication-success" and "authentication-failure"
> we want to be able to send the user to another special page according 
> to some condition (s.th. like a 3rd "outcome").
> 
> Is that possible to achieve with the combination of Acegi and MyFaces?
> 
> Thanx for your help,
> Cheers,
> Martin
> 
> 
> 
--
Martin Grotzke
Bernstorffstr. 17, 22767 Hamburg
Tel.      +49 (0) 40.98239888
Mobil     +49 (0) 170.9365656
E-Mail    [EMAIL PROTECTED]
Online    http://www.javakaffee.de

Reply via email to