Results 1 to 3 of 3

Thread: External loginFormUrl with Acegi

Hybrid View

  1. #1
    Join Date
    Apr 2005
    Location
    Austin, TX
    Posts
    1

    Default External loginFormUrl with Acegi

    I am integrating acegi with an external system, which accepts a login and password, and then redirects the user to j_acegi_securitycheck on our system with a j_username and j_password. There is some stuff that happens in the background between our databases to ensure that the password is only used for the session. I am using the form-based login with the authenticationProcessingFilter and my own subclass of AuthenticationDao.

    This all works fine, but the client wants the logout button and login error pages to go to their (the external) login page. Instead, it goes to our internal login form (our app has one because this is the usual usage for other clients).

    I can't specify a different form in loginFormUrl, because it must be container-relative.

    The error page can be a simple redirect from my logout controller, so I am not as worried about that, but it would be nice to handle it from acegi.

    Is there any way to tell acegi to redirect to the external login page whenever it needs to do so? Why must it be a relative path?

  2. #2
    Join Date
    Apr 2005
    Posts
    25

    Default

    It isn't hard to have your internal login error page contain a JSTL redirect to another external login page. If that is your only requirement, there ya go. If on the other hand you need that external login page to authenticate into your local app, that's a horse of a different color.

    If you use the JSTL redirect approach you likely won't have any Acgi context support in your external page. This means that within your local login error page you'll need to pull out relevent error information and pass them as std request params to the external login page. If you care why the login didn't succeed that is.

    -Jim

  3. #3
    Join Date
    Aug 2004
    Location
    Sydney, Australia
    Posts
    2,768

    Default Re: External loginFormUrl with Acegi

    [quote="gbryal"Is there any way to tell acegi to redirect to the external login page whenever it needs to do so? Why must it be a relative path?[/quote]

    Just implement your own AuthenticationEntryPoint (copy the AuthenticationProcessingFilterEntryPoint) to provide external login page redirection.
    Ben Alex
    Project Founder, Spring UAA, Spring Roo and Spring Security

Similar Threads

  1. Replies: 8
    Last Post: Mar 19th, 2008, 11:13 AM
  2. Acegi running fine. Howto add roles, ...
    By ThomasBecker in forum Security
    Replies: 9
    Last Post: Sep 16th, 2007, 08:16 AM
  3. Replies: 9
    Last Post: Sep 5th, 2006, 06:50 AM
  4. Acegi for LDAP
    By vaibhav.gandhi in forum Security
    Replies: 12
    Last Post: Jul 13th, 2005, 12:33 AM
  5. Replies: 4
    Last Post: Nov 2nd, 2004, 02:11 PM

Posting Permissions

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