cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject FW: Help! Question on authentication + flow + passing on data -- reposted
Date Sat, 08 May 2004 19:18:34 GMT
Does someone have any idea on how to solve this? I'd rather not mix the
authentication stuff in with my "use case" flowscripts.

Bye, Helma

-----Original Message-----
From: [] 
Sent: Friday, 07 May 2004 23:26
Subject: Help! Question on authentication + flow + passing on data


I'm using the authentication-fw with flowscripts (as in the sample). But I
have a problem now: I want to pass on viewData/bizData to the resulting
page. If this page is in an internal pipeline (i.e. user is logged in), I
get an error on "missing authentication context". If the resulting page is
the public counterpart of this internal pipeline, I get the authentication
context, but all viewData/bizData info is lost.

Can anyone help?


<map:match pattern="public/*">
   <map:call function="protect">
      <map:parameter name="internal-redirect" value="internal/{1}"/>

<map:pipeline internal-only="true">
   <map:match pattern="internal/*.html>
      <map:call function="prot_myFunc"/>
   <map:match pattern="internal/*.form">
      <map:generate type="jx" src="{1}.jx"/>
      <map:transform type="session"/>
      <map:transform src="toHTML.xsl"/>
      <map:serialize type="html"/>

function prot_myFunc_v1() {
  var viewData = {list: someData, nr: someData.size() };
  cocoon.sendPage("internal/result.form", viewData);

function  prot_myFunc_v2() {
  var viewData = {list: someData, nr: someData.size() };
  cocoon.sendPage("public/result.form", viewData);

prot_myFunc_v1 results in the "no authentication context" error. 
prot_myFunc_v2 has lost the viewData contents.

Any ideas?

Bye, Helma

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message