......
<map:action name="sunRise-auth" src="org.apache.cocoon.sunshine.sunrise.acting.AuthAction">
<handlers>
<handler name="foo-handler" xmlns:map="http://apache.org/cocoon/sitemap/1.0" xmlns:sunshine="http://sunshine.sundn.de/sunshine/1.0">
<redirect-to uri="cocoon://foo-loginpage"/>
<authentication uri="cocoon:raw://foo-authuser"/>
</handler>
......
<!-- =============== AUTHENTICATE Sample =========================== -->
<map:pipeline>
<map:match pattern="foo-loginpage">
<map:generate src="samples/foo/loginpage.xml"/>
<map:transform src="samples/foo/loginpage.xsl" />
<map:transform type="encodeURL" />
<map:serialize />
</map:match>
<map:match pattern="foo-login">
<map:act type="sunRise-login">
<map:parameter name="handler" value="foo-handler"/>
<map:parameter name="parameter_name" value="request:name"/>
<map:parameter name="parameter_password" value="request:password"/>
<!-- If the authentication is successfull then this redirect will be performed -->
<map:redirect-to uri="foo-protected"/>
</map:act>
<!-- authentication failed: -->
<map:generate src="samples/foo/login-failed.xml"/>
<map:transform src="stylesheets/simple-xml2html.xsl"/>
<map:serialize/>
</map:match>
<map:match pattern="foo-logout">
<map:act type="sunRise-auth">
<map:parameter name="handler" value="foo-handler"/>
<map:act type="sunRise-logout"/>
</map:act>
</map:match>
<map:match pattern="foo-authuser">
<map:generate src="samples/foo/foo-user.xml"/>
<map:transform src="samples/foo/foo-user.xsl">
<map:parameter name="use-request-parameters" value="true" />
</map:transform>
<map:serialize type ="xml"/>
</map:match>
<map:match pattern="foo-protected">
<map:act type="sunRise-auth">
<map:parameter name="handler" value="foo-handler"/>
<map:generate src="samples/foo/foo-resource.xml"/>
</map:act>
<map:transform src = "stylesheets/simple-xml2html.xsl"/>
<map:serialize/>
</map:match>
</map:pipeline>
<!-- =============== End Of AUTH Sample ============================ -->
......
Any help is welcome. Thanks in advance.
brgds, j.w
From: "jin wu" <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: Sunrise-logout, context not clear Date: Thu, 27 Mar 2003 14:49:25 -0800
hi ilfrin,
i encountered the similar problem like yours when trying the authentication framework. i can login but cannot logou properly. actually i can logout the first time. but after i login again, i cannot logout and the protected resource will be shown without authentication.
my environment is:
win2k cocoon 2.0.4 tomcat 4.1.18 java 1.3.06
i also have the same problem under:
win2k cocoon 2.0.4 iplanet web server 6.0 SP5
i saw carsten's answer to your question, but it doesn't help me. have u got ur problem solved? i don't have carsten ziegeler's email address, could u pls. send it to me if you have? thx.
best regards, j.w
_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]