Hi Olivier,

protection works over the 'auth-protect' action. You can use it in any
pipeline. So you dont need a redirect to protect other pages.

Martin


----- Original Message -----
From: "Olivier GUCKERT" <[EMAIL PROTECTED]>
To: "Cocoon-user" <[EMAIL PROTECTED]>
Sent: Tuesday, January 28, 2003 2:46 PM
Subject: auth problem


Hello

I'd like to use the authentication actions, but have some trouble with
the redirect-to :

In my sitemap, i wrote :

<map:match pattern="login">
<map:act type="auth-login">
<map:parameter name="handler" value="MaProtection"/>
<map:parameter name="parameter_nom" value="{request-param:nom}"/>
<map:parameter name="parameter_mot-de-passe"
value="{request-param:mot-de-passe}"/>
<map:redirect-to uri="annu2.xml"/>
</map:act>
<!--L'authentification a échoué -->
<map:redirect-to uri="login-page"/>
</map:match>

and it works fine. But it's good just for protect the page annu2.xml.
How can i parameter the redirect-to with the name of the called page ?

Thanks

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to