Results 1 to 3 of 3

Thread: Problem re-directing a page properly

  1. #1
    Join Date
    Dec 2007
    Posts
    2

    Default Problem re-directing a page properly

    Hi,
    I am new to Acegi and i am trying to configure it in my application. I have done the required changes in my "applicationContext-acegi-security.xml" file. When i open the application in Mozilla..i get the message
    "The page isn't redirecting properly
    Firefox has detected that the server is redirecting the request for this address in a way that will never complete"

    Please suggest where am i going wrong ?

    regards,
    -Mayank

  2. #2
    Join Date
    Jul 2005
    Location
    Geneva (Switzerland)
    Posts
    304

    Default

    Could you please post your acegi config ? Please use [code].

    With just your description, it's hard to know what's wrong.

  3. #3
    Join Date
    Jan 2008
    Posts
    2

    Default

    I am new to Acegi myself, but my guess would be that also your login-page requires login, so it redirects in a loop. Try to set your login-page to be available to ROLE_ANONYMOUS in your FilterSecurityInterceptor-bean, something like this (where /login is your login-page):

    Code:
    <property name="objectDefinitionSource">
      <value>
        PATTERN_TYPE_APACHE_ANT
        /login*=ROLE_ANONYMOUS,ROLE_USER,ROLE_ADMIN
        /**=ROLE_USER,ROLE_ADMIN
      </value>
    </property>

Posting Permissions

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