Author: shane.bryzak(a)jboss.com
Date: 2008-10-13 19:14:57 -0400 (Mon, 13 Oct 2008)
New Revision: 9288
Modified:
trunk/doc/Seam_Reference_Guide/en-US/Security.xml
Log:
JBSEAM-3549
Modified: trunk/doc/Seam_Reference_Guide/en-US/Security.xml
===================================================================
--- trunk/doc/Seam_Reference_Guide/en-US/Security.xml 2008-10-13 23:14:34 UTC (rev 9287)
+++ trunk/doc/Seam_Reference_Guide/en-US/Security.xml 2008-10-13 23:14:57 UTC (rev 9288)
@@ -445,6 +445,19 @@
That is all that is required - automatic authentication will now occur for
users revisiting your site (as long as they
check the "remember me" checkbox).
</para>
+
+ <para>
+ To ensure that users are automatically authenticated when returning to the
site, the following section
+ should be placed in components.xml:
+ </para>
+
+ <programlisting role="XML"><![CDATA[ <event
type="org.jboss.seam.security.notLoggedIn">
+ <action execute="#{redirect.captureCurrentView}"/>
+ <action execute="#{identity.tryLogin()}"/>
+ </event>
+ <event type="org.jboss.seam.security.loginSuccessful">
+ <action execute="#{redirect.returnToCapturedView}"/>
+ </event>]]></programlisting>
</sect3>
Show replies by date