Date: 2004-11-22T08:06:49
   Editor: HelmaVanDerLinden <[EMAIL PROTECTED]>
   Wiki: Cocoon Wiki
   Page: AuthFWWithFlowAndForms
   URL: http://wiki.apache.org/cocoon/AuthFWWithFlowAndForms

   no comment

Change Log:

------------------------------------------------------------------------------
@@ -1,9 +1,10 @@
-=Authentication with flow and CForms
+=== Authentication with flow and CForms ===
 
 Using the authentication framework with flow is already described here: 
[http://wiki.cocoondev.org/Wiki.jsp?page=AuthFWWithFlow Authentication 
Framework with flow].
 
 What may not be obvious, at least it wasn't to me for a long time, is that the 
pipeline handling the continuation should also be included in the "protected" 
area. Otherwise they will loose the authentication context in the session. 
However, you cannot call a continuation inside a "call function". I.e. the 
following is '''not''' possible:
 
+{{{
 <map:match pattern="*.continue">
    <map:call function="protected">
       <map:parameter name="handler" value="myflowauthenticationhandler"/>
@@ -11,8 +12,10 @@
    </map:call>
 </map:match>
 
+}}}
 However, you can still use the authentication actions:
 
+{{{
 <map:match pattern="*.continue">
   <map:act type="auth-loggedIn">  <!-- check authentication -->
     <map:parameter name="handler" value="managehandler"/>
@@ -23,5 +26,6 @@
   </map:act>
   <map:redirect-to uri="login"/>
 </map:match>
+}}}
 
 ''Thanks to Oscar Picasso for the above pipeline.''

Reply via email to