Results 1 to 3 of 3

Thread: login redirect problem

Hybrid View

  1. #1
    Join Date
    Jan 2006
    Posts
    2

    Unhappy login redirect problem

    I'm running on Tomcat 5.5 server. The problem is on first login the user is redirect back to the login page. I have extended the AuthenticationProcessingFilter to
    store the redirect target in ACEGI_SECURITY_TARGET_URL_KEY based on the user authority in the onSuccessfulAuthentication
    method but it seems that it doesn't working on the first login.

    Thank you.
    Attached Files Attached Files

  2. #2
    Join Date
    Jul 2005
    Location
    Germany
    Posts
    31

    Default

    Can you post your Acegi configuration? It's impossible to judge only from the log (at least for me).

  3. #3
    Join Date
    Jan 2006
    Posts
    2

    Default

    Thanks for your reply... I "resolved the problem" by creating a redirect file and in the file i've put:
    Code:
    <authz:authorize ifAllGranted="ROLE_ADMIN">
        <core:redirect url="/admin/home.htm"></core:redirect>
    </authz:authorize>
    <authz:authorize ifAllGranted="ROLE_SELLER">
        <core:redirect url="/seller/home.htm"></core:redirect>
    </authz:authorize>
    <core:redirect url="/index.htm"></core:redirect>
    And login it is working ok...

Posting Permissions

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