Results 1 to 4 of 4

Thread: Authentication without Backing Bean

  1. #1
    Join Date
    Mar 2007
    Posts
    16

    Red face Authentication without Backing Bean

    Hi Members,

    I am trying to use Acegi with JSF. I want to authenticate users without using any Backing Bean. What is the procedure for this?
    I mean what should I mention in my JSF page and faces-config.xml.
    Awaiting response.

  2. #2
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,424

    Default

    I'm sorry I don't understand what you're actually asking for here, any chance of some more information?

  3. #3
    Join Date
    Mar 2007
    Posts
    16

    Smile

    Hi karldmoore,

    What I meant to say was that, when using simple html forms we just mention <form action="j_acegi_security_check" method="post"> and then the AuthenticationProcessingFilter comes into action but how does Acegi come into picture when using JSF. It would be very helpful if you could send me a sample login jsf page and faces-config.xml. I hope you understand my problem or if I am moving in a wrong direction then please guide me.Thanks.

  4. #4
    Join Date
    Feb 2007
    Location
    Hannover, Germany
    Posts
    20

    Default

    Quote Originally Posted by carp View Post
    What I meant to say was that, when using simple html forms we just mention <form action="j_acegi_security_check" method="post"> and then the AuthenticationProcessingFilter comes into action but how does Acegi come into picture when using JSF. It would be very helpful if you could send me a sample login jsf page and faces-config.xml.
    I believe you'll need some kind of backing mechanism as described in http://forum.springframework.org/showthread.php?t=29425 and http://www.javakaffee.de/blog/2006/0...-backing-bean/. In this case it is a managed JSF bean. Something I tried is to modify the code from this sample and put the call to this object via DI into the page backing bean, which is a standard in the Creator/VisualWeb programming model.

    But what I didn't get run with this technique is different authorization for different directories together with a working AccessDeniedHandler.

    Btw. I'm searching such an example too (http://forum.springframework.org/showthread.php?t=35661, http://forum.springframework.org/showthread.php?t=35736).

    jiai
    Last edited by jiai; Mar 6th, 2007 at 06:26 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •