Yeah, but be careful with that. Know that <map:act type="auth-protect"> wont protect any pipeline for your guest users. As long as "auth-protect" is concerned, your guest user is an authenticated user just any other user.
It took me several hours to discover that :( To protect your pipeline from guest users you have to do additional checks. Regards, Armaz > -----Original Message----- > From: Jonas Lundberg [mailto:[EMAIL PROTECTED] > Sent: Friday, October 21, 2005 11:04 AM > To: [email protected] > Subject: Re: Accessing "authentication"-contex wthout > actually protecting a pipeline? > > On 10/21/05, Christofer Dutz <[EMAIL PROTECTED]> wrote: > > And how can you initially set the auth-data to this guest-user? > > That's very easy, fortunately! > > Put this in a pipeline: (from the portal block sitemap.xmap) > > <!-- Do an auto login as anonymous --> > <map:act type="auth-loggedIn"> > <map:parameter name="handler" value="portal-handler"/> > <map:parameter name="application" value="portal"/> > <map:parameter name="negate-result" value="true"/> > > <map:act type="auth-login"> > <map:parameter name="handler" value="portal-handler"/> > <map:parameter name="application" value="portal"/> > > <map:parameter name="parameter_name" value="anonymous"/> > <map:parameter name="parameter_password" value="anonymous"/> > </map:act> > </map:act> > > Hans > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
