cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Markus Heussen" <heus...@asspaxx.de>
Subject [Sitemap] auth-protect action - bug or feature?
Date Thu, 22 Apr 2004 22:52:16 GMT
Hi all!

If I call my following protected pipeline the result is a 404 page not found
error. I thought the right behavior is to redirect automatically to the
login resource??

Is it a bug or am I doing something wrong? I am using Cocoon from the few
days old CVS Head under SDK1.4.2 and TC 4.1.30.

Thanks for helping, Markus


<map:match type="wildcard" pattern="secure/**">
	<map:act type="auth-protect">
		<map:parameter name="handler" value="{global:handler}"/>
		<!-- logout function -->
		<map:match type="wildcard" pattern="secure/logout">
			<map:call function="logout">
				<map:parameter name="handler" value="{global:handler}"/>
			</map:call>
		</map:match>
		<!-- flowscripts -->
		<map:match type="wildcard" pattern="secure/*.flow">
			<map:call function="{1}"/>
		</map:match>
	</map:act>
</map:match>


The authentication declaration looks like the following:

<authentication-manager>
	<global-variables>
		<handler>myapp</handler>
	</global-variables>
	<handlers>
		<handler name="myapp">
			<redirect-to uri="cocoon:/login"/>
			<authentication uri="cocoon:raw:/auth"/>
		</handler>
	</handlers>
</authentication-manager>


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


Mime
View raw message