Hi,

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?

Specifics:

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

<map:pipeline internal-only="true">
   <map:match pattern="internal/*.html>
      <map:call function="prot_myFunc"/>
   </map:match>
   <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"/>
   </map:match>
</map:pipeline>

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

function  prot_myFunc_v2() {
  doSomething();
  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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to