You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jan Wielgus <li...@o2.pl> on 2003/10/25 16:21:14 UTC

[newbie] Authentication-context in the auth.-framework

Hello,

in the authentication framework documentation you can read:

"The authentication context is only available to the session transformer if the pipeline, the transformer is running in, is associated to the (authentication) handler. Or putting it in other words: you have to use the auth-project action in that pipeline. Otherwise the authentication context is not available."

My question is: where exactly do I have to use the auth-project action how should I write it? Could anyone give a simple excerpt of a sitemap where this action is used? Many thanks in advance.

Jan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Re: [newbie] Authentication-context in the auth.-framework

Posted by Mathias Wiegard <Ma...@student.uni-ulm.de>.
Hi Jan,
If you read the 2.1.2 documentation: at the and of the
authentication-chapter, there's an excercise...:

...But the auth-loggedIn action does not give the included pipeline
access to the authentication context belonging to the handler. If you want
this, you have to nest the auth-protect action inside!

<map:match pattern"start">
<map:act type="auth-loggedIn">  <!-- check authentication -->
<map:parameter name="handler" value="myhandler"/>
<map:act type="auth-protect">  <!-- give access to the context -->
<map:parameter name="handler" value="myhandler"/>
<map:generate src="getinfofromcontext.xml"/>
<map:transform src="session"/>
<map:transform src="toHTML"/>
<map:serialize/>
</map:act>
</map:match> 


> Von: Jan Wielgus <li...@o2.pl>
> Antworten an: users@cocoon.apache.org
> Datum: Sat, 25 Oct 2003 16:21:14 +0200 (MET DST)
> An: users@cocoon.apache.org
> Betreff: [newbie] Authentication-context in the auth.-framework
> 
> Hello,
> 
> in the authentication framework documentation you can read:
> 
> "The authentication context is only available to the session transformer if
> the pipeline, the transformer is running in, is associated to the
> (authentication) handler. Or putting it in other words: you have to use the
> auth-project action in that pipeline. Otherwise the authentication context is
> not available."
> 
> My question is: where exactly do I have to use the auth-project action how
> should I write it? Could anyone give a simple excerpt of a sitemap where this
> action is used? Many thanks in advance.
> 
> Jan
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org