[seam-commits] Seam SVN: r9288 - trunk/doc/Seam_Reference_Guide/en-US.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Mon Oct 13 19:14:57 EDT 2008


Author: shane.bryzak at 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>
       




More information about the seam-commits mailing list