You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Antony Quinn <aq...@ebi.ac.uk> on 2006/06/22 16:39:30 UTC
Authorised user name in sitemap?
Hello,
My Cocoon application is protected with Tomcat basic authentication. How
can I obtain the authorised user name in the sitemap?
I found a reference to AuthenticationSelector
[http://cocoon.apache.org/2.1/userdocs/concepts/sitemap.html] but could
not find any documentation.
Cheers,
Antony
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: Authorised user name in sitemap?
Posted by Stavros Kounis <sk...@gmail.com>.
Hi antony
maybe this sitemap fragment help you
<map:match pattern="internal/protected_*.flow">
<map:select type="request-method">
<map:when test="POST">
<map:call
continuation="{request-param:continuation-id}" />
</map:when>
<map:otherwise>
<map:call function="protected_{1}">
<map:parameter name="locale"
value="{1}" />
<map:parameter name="userId"
value="{session-context:authentication/authentication/ID}" />
</map:call>
</map:otherwise>
</map:select>
</map:match>
On 6/22/06, Antony Quinn <aq...@ebi.ac.uk> wrote:
> Hello,
>
> My Cocoon application is protected with Tomcat basic authentication. How
> can I obtain the authorised user name in the sitemap?
>
> I found a reference to AuthenticationSelector
> [http://cocoon.apache.org/2.1/userdocs/concepts/sitemap.html] but could
> not find any documentation.
>
> Cheers,
>
> Antony
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
--
Stavros S. Kounis
Osmosis networks & consulting http://www.osmosis.gr
Read my weblog at http://tools.osmosis.gr/blog
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org