cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stavros Kounis" <skou...@gmail.com>
Subject Re: Authorised user name in sitemap?
Date Thu, 22 Jun 2006 16:06:00 GMT
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 <aquinn@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


Mime
View raw message