Re: auth problem

2003-01-29 Thread Olivier GUCKERT


Carsten Ziegeler a écrit :

> This is of course because of your redirect statement. Usually, if your
> login-page is called it gets a request parameter named "resource"
> that contains the protected resource.
> So, you have to take care that you pass this parameter (e.g. via a
> hidden input field) to your login pipeline. Then you can
> do a redirect to {request-param:resource}.
> 
> Carsten

Ok Thanks Carsten, i try to do this


Olivier Guckert

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: auth problem

2003-01-28 Thread Carsten Ziegeler


> -Original Message-
> From: Olivier GUCKERT [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 28, 2003 5:22 PM
> To: Cocoon-user
> Subject: Re: auth problem
>
>
>
>
> Martin Dulisch a écrit :
> >
> > 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
>
> Ok Martin and thanks
>
> But, if i write :
> 
>   
>   
>value="{request-param:nom}"/>
>value="{request-param:mot-de-passe}"/>
>   
>   
>   
>   
> 
>
> The first seen page after login is always annu2.xml...
This is of course because of your redirect statement. Usually, if your
login-page is called it gets a request parameter named "resource"
that contains the protected resource.
So, you have to take care that you pass this parameter (e.g. via a
hidden input field) to your login pipeline. Then you can
do a redirect to {request-param:resource}.

Carsten


-
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]>




Re: auth problem

2003-01-28 Thread Olivier GUCKERT


Martin Dulisch a écrit :
> 
> 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

Ok Martin and thanks

But, if i write : 











The first seen page after login is always annu2.xml...
And if i don't write the , i go back
to the login-page, ...

Or, if i have an other page protected with my handler, it's better for
me to see it without to see the annu2.xml page. And i don't know how to
do that.

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: auth problem

2003-01-28 Thread Martin Dulisch
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 :












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]>




auth problem

2003-01-28 Thread Olivier GUCKERT
Hello

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

In my sitemap, i wrote : 











 
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. 

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