cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Cocoon Wiki] New: AuthFWWithFlowAndForms
Date Mon, 22 Nov 2004 16:03:33 GMT
   Date: 2004-11-22T08:03:33
   Editor: HelmaVanDerLinden <>
   Wiki: Cocoon Wiki
   Page: AuthFWWithFlowAndForms

   adding page on authentication and flow and cforms

New Page:

=Authentication with flow and CForms

Using the authentication framework with flow is already described here: [
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"/>
      <map:call continuation="{1}"/>

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"/>
    <map:act type="auth-protect">  <!-- give access to the context -->
      <map:parameter name="handler" value="managehandler"/>
      <map:call continuation="{1}"/>
  <map:redirect-to uri="login"/>

''Thanks to Oscar Picasso for the above pipeline.''

View raw message