cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derek Hohls" <>
Subject Obtain authentication data inside and outside of protected pipeline?
Date Tue, 24 Jan 2006 12:56:26 GMT
I am trying to obtain authentication data inside and outside of protected pipeline.
INSIDE the pipeline I have :
<map:match pattern="docs/show-**">
  <map:act type="auth-protect">
    <map:parameter name="handler" value="myhandler"/> 
  <map:match pattern="docs/show-protected">
      <map:generate src="docs/protected.xml"/>
      <map:transform type="session"/>
      <map:transform src="stylesheets/page.xsl">
     <map:parameter name="userid" value="{session-context:authentication/authentication/ID}"/>
And this works OK (I can obtain "userid").  
OUTSIDE the pipeline I have :
   <map:match pattern="docs/*.htm">
     <map:generate src="docs/{1}.xml"/>
   <map:call resource="page2html"/>
   <map:serialize type="html"/>
and in the resource section:
   <map:resource name="page2html">
     <map:transform src="stylesheets/page.xsl">
       <map:parameter name="userid"  value="{ID}"/>
    <map:parameter name="userid"  value="{session-context:/authentication/authentication/ID}"/>
      <map:parameter name="userid"  value="{session-attr:ID}"/>
 But this does not work after the user has logged in?
 What is the correct method for obtaining authentication data 
 outside of a protected pipeline?

This message is subject to the CSIR's copyright, terms and conditions and
e-mail legal notice. Views expressed herein do not necessarily represent the
views of the CSIR.
CSIR E-mail Legal Notice 
CSIR Copyright, Terms and Conditions 
For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR
Legal Notice send a blank message with REQUEST LEGAL in the subject line to

This message has been scanned for viruses and dangerous content by MailScanner, 
and is believed to be clean.

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

View raw message