4 Replies Latest reply on Oct 4, 2008 10:44 AM by Piotr Jatym

    FORM auth-method redirect problem

    Jason Hopkins Newbie


      I'm using the form auth-method to authenticate new users to my application. The form-login-page is a simple jsf page that uses a html element to post to j_security_check. Pre-3.2.0 this was working perfrectly but after upgrading to 3.2.1GA after login I am directed to:


      rather than the page that was origanally requested.

      Any ideas how I can get around this?

        • 1. Re: FORM auth-method redirect problem
          Aleksandr Savelyev Newbie

          Having the similar issue... using jsf 1.2_07 + facelets 1.1.14 + 3.2.1GA

          After hitting login button, browser (Firefox, IE, Safari) either spits out some css(eAF7sqpgb-jyGdIAFrMEaw__.css) that get opened in notepad or just displays empty page

          From web.xml:

          <realm-name>Form-Based Authentication Area</realm-name>

          Any ideas!

          • 3. Re: FORM auth-method redirect problem
            Jason Hopkins Newbie

            We fixed this problem :)

            It was caused by the resources requested by the login page (CSS etc) were also being flagged as restricted, so when you successfully logged in you were redirected to the last restricted page you requested... the CSS of the login page...

            To fix it you can specify a resource uri prefix in your web.xml


            Then you can make requests from that URI onwards unrestricted:

             <web-resource-name>RichFaces Resource Library</web-resource-name>
             Allow users to access pictures and css.

            Sorted. :)