Start page

Martin Dubuc <[email protected]> Fri, 13 Feb 2009 16:52:06 -0500
Newsgroups gmane.comp.java.securityfilter.user
Message-ID <[email protected]>
--===============5098995439177286062==
Content-Type: multipart/alternative; boundary=0015174c40b01ebe7a0462d3d9a8

--0015174c40b01ebe7a0462d3d9a8
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

I was expecting securityfilter is to make it possible for an application to
automatically load a specific page after a successful user login. I have
configured the login-config property in the securityfilter-config.xml as
follows:

   <login-config>
        <auth-method>FORM</auth-method>
        <form-login-config>
            <form-login-page>/login.jsp</form-login-page>
            <form-error-page>/loginError.jsp</form-error-page>
            <form-default-page>/test.html</form-default-page>
        </form-login-config>
    </login-config>

I would expect with such setup that the Web application always presents page
test.html after a successful login.

However, when the user logs in, the application does not load the test.html
Web page (I might have seen the application load it once, but other times,
it didn't load that page). The biggest problem I am facing is the handling
of the case where a session times out and the user clicks on a link on the
page while the session is invalidated. Currently, securityfilter rightfully
forwards to the login page, but after the login, it seems like it is either
trying to resume where it left off, or loads the index.html page (instead of
test.html). The page that is returned is blank. The source shows that the
Ajax4Jsf library has been busy building the page, but only partially. It is
not clear to me what the interactions are between Tomcat, Ajax4Jsf and
securityfilter.

I would like to confirm first of all that I can force securityfilter to load
a specific page after a login that was requested because of a session timing
out. If it is the case, I am wondering if there are any signs I could
monitor to help figure out why I am presented with a blank page.

Martin

--0015174c40b01ebe7a0462d3d9a8
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

I was expecting securityfilter is to make it possible for an application to=
 automatically load a specific page after a successful user login. I have c=
onfigured the login-config property in the securityfilter-config.xml as fol=
lows:<br>
<br>&nbsp;&nbsp; &lt;login-config&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp; &lt;auth-method&gt;FORM&lt;/auth-method&gt;<br>&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp; &lt;form-login-config&gt;<br>&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;form-login-page&gt;/login.=
jsp&lt;/form-login-page&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp; &lt;form-error-page&gt;/loginError.jsp&lt;/form-erro=
r-page&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;form=
-default-page&gt;/test.html&lt;/form-default-page&gt;<br>&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp; &lt;/form-login-config&gt;<br>&nbsp;&nbsp;&nbsp; &=
lt;/login-config&gt;<br><br>I would expect with such setup that the Web app=
lication always presents page test.html after a successful login.<br>
<br>However, when the user logs in, the application does not load the test.=
html Web page (I might have seen the application load it once, but other ti=
mes, it didn&#39;t load that page). The biggest problem I am facing is the =
handling of the case where a session times out and the user clicks on a lin=
k on the page while the session is invalidated. Currently, securityfilter r=
ightfully forwards to the login page, but after the login, it seems like it=
 is either trying to resume where it left off, or loads the index.html page=
 (instead of test.html). The page that is returned is blank. The source sho=
ws that the Ajax4Jsf library has been busy building the page, but only part=
ially. It is not clear to me what the interactions are between Tomcat, Ajax=
4Jsf and securityfilter.<br>
<br>I would like to confirm first of all that I can force securityfilter to=
 load a specific page after a login that was requested because of a session=
 timing out. If it is the case, I am wondering if there are any signs I cou=
ld monitor to help figure out why I am presented with a blank page.<br>
<br>Martin<br>

--0015174c40b01ebe7a0462d3d9a8--


--===============5098995439177286062==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
--===============5098995439177286062==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
securityfilter-user mailing list
securityfilter-user-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/securityfilter-user

--===============5098995439177286062==--