You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Lionel Crine <cr...@4dconcept.fr> on 2003/02/19 15:35:40 UTC
sunrise authentication and request Object
I'm using sunrise authentication and I need to get the request parameter
send by the form <tag>.
It seems that during the pipelines processing, the request parameters are
lost so when I use "<xsp-request:get-parameter name="login"/>"
in my xsp page, there is nothing.
If I don't use sunrise auhentication, I can get the parameter(s).
I'm sure I loose the parameters during the pipeline processing, I saw it in
the core.log file.
In my pipeline, I have :
<!-- log the user -->
<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="ixia_demo"/>
</map:act>
...
<map:match pattern="ixia_demo">
<!-- check you are already logged -->
<map:act type="sunRise_loggedIn">
<map:parameter name="handler" value="foo_handler"/>
<map:redirect-to uri="protected/display"/>
</map:act>
<!-- if not go to page login-->
...
</map:match>
<map:match pattern="protected/**">
<map:act type="sunRise_auth">
<map:parameter name="handler" value="foo_handler"/>
<!-- welcome page -->
....
Is there a way to keep the parameter during the pipeline processing ?
Lionel
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: sunrise authentication and request Object
Posted by Lionel Crine <cr...@4dconcept.fr>.
It's not working.
At 16:48 19/02/2003 +0100, you wrote:
>Try to replace "cocoon:raw:" with "cocoon:" in
> <authentication uri="cocoon:raw://authuser"/>
>
>I am not sure, but I think the raw attribute causes parameters to be
>lost.
>
>Martin
>
>
>
>----- Original Message -----
>From: "Lionel Crine" <cr...@4dconcept.fr>
>To: <co...@xml.apache.org>
>Sent: Wednesday, February 19, 2003 4:10 PM
>Subject: Re: sunrise authentication and request Object
>
>
> > Here is the handler :
> >
> >
> > <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://login_page"/>
> > <authentication uri="cocoon:raw://authuser"/>
> > </handler>
> > </handlers>
> >
> >
> >
> >
> > At 16:01 19/02/2003 +0100, you wrote:
> > >Lionel,
> > >
> > >please send also the definition of the handler.
> > >
> > >Martin
> > >
> > >----- Original Message -----
> > >From: "Lionel Crine" <cr...@4dconcept.fr>
> > >To: <co...@xml.apache.org>
> > >Sent: Wednesday, February 19, 2003 3:35 PM
> > >Subject: sunrise authentication and request Object
> > >
> > >
> > > > I'm using sunrise authentication and I need to get the request
> > >parameter
> > > > send by the form <tag>.
> > > >
> > > > It seems that during the pipelines processing, the request
> > >parameters are
> > > > lost so when I use "<xsp-request:get-parameter name="login"/>"
> > > > in my xsp page, there is nothing.
> > > >
> > > > If I don't use sunrise auhentication, I can get the
>parameter(s).
> > > >
> > > > I'm sure I loose the parameters during the pipeline processing,
>I
> > >saw it in
> > > > the core.log file.
> > > >
> > > > In my pipeline, I have :
> > > >
> > > > <!-- log the user -->
> > > > <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="ixia_demo"/>
> > > > </map:act>
> > > > ...
> > > >
> > > > <map:match pattern="ixia_demo">
> > > > <!-- check you are already logged -->
> > > > <map:act type="sunRise_loggedIn">
> > > > <map:parameter name="handler" value="foo_handler"/>
> > > > <map:redirect-to uri="protected/display"/>
> > > > </map:act>
> > > > <!-- if not go to page login-->
> > > > ...
> > > > </map:match>
> > > >
> > > > <map:match pattern="protected/**">
> > > > <map:act type="sunRise_auth">
> > > > <map:parameter name="handler" value="foo_handler"/>
> > > > <!-- welcome page -->
> > > > ....
> > > >
> > > >
> > > > Is there a way to keep the parameter during the pipeline
>processing
> > >?
> > > > Lionel
> > > >
> > > >
> > >
> > --------------------------------------------------------------------
> > >-
> > > > 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:
> > ><co...@xml.apache.org>
> > > > For additional commands, e-mail:
> > ><co...@xml.apache.org>
> > > >
> > >
> > >
> >
> >---------------------------------------------------------------------
> > >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:
><co...@xml.apache.org>
> > >For additional commands, e-mail:
><co...@xml.apache.org>
> >
> >
> > --------------------------------------------------------------------
>-
> > 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:
><co...@xml.apache.org>
> > For additional commands, e-mail:
><co...@xml.apache.org>
> >
>
>
>---------------------------------------------------------------------
>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: <co...@xml.apache.org>
>For additional commands, e-mail: <co...@xml.apache.org>
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: sunrise authentication and request Object
Posted by Martin Dulisch <md...@s-und-n.de>.
Try to replace "cocoon:raw:" with "cocoon:" in
<authentication uri="cocoon:raw://authuser"/>
I am not sure, but I think the raw attribute causes parameters to be
lost.
Martin
----- Original Message -----
From: "Lionel Crine" <cr...@4dconcept.fr>
To: <co...@xml.apache.org>
Sent: Wednesday, February 19, 2003 4:10 PM
Subject: Re: sunrise authentication and request Object
> Here is the handler :
>
>
> <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://login_page"/>
> <authentication uri="cocoon:raw://authuser"/>
> </handler>
> </handlers>
>
>
>
>
> At 16:01 19/02/2003 +0100, you wrote:
> >Lionel,
> >
> >please send also the definition of the handler.
> >
> >Martin
> >
> >----- Original Message -----
> >From: "Lionel Crine" <cr...@4dconcept.fr>
> >To: <co...@xml.apache.org>
> >Sent: Wednesday, February 19, 2003 3:35 PM
> >Subject: sunrise authentication and request Object
> >
> >
> > > I'm using sunrise authentication and I need to get the request
> >parameter
> > > send by the form <tag>.
> > >
> > > It seems that during the pipelines processing, the request
> >parameters are
> > > lost so when I use "<xsp-request:get-parameter name="login"/>"
> > > in my xsp page, there is nothing.
> > >
> > > If I don't use sunrise auhentication, I can get the
parameter(s).
> > >
> > > I'm sure I loose the parameters during the pipeline processing,
I
> >saw it in
> > > the core.log file.
> > >
> > > In my pipeline, I have :
> > >
> > > <!-- log the user -->
> > > <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="ixia_demo"/>
> > > </map:act>
> > > ...
> > >
> > > <map:match pattern="ixia_demo">
> > > <!-- check you are already logged -->
> > > <map:act type="sunRise_loggedIn">
> > > <map:parameter name="handler" value="foo_handler"/>
> > > <map:redirect-to uri="protected/display"/>
> > > </map:act>
> > > <!-- if not go to page login-->
> > > ...
> > > </map:match>
> > >
> > > <map:match pattern="protected/**">
> > > <map:act type="sunRise_auth">
> > > <map:parameter name="handler" value="foo_handler"/>
> > > <!-- welcome page -->
> > > ....
> > >
> > >
> > > Is there a way to keep the parameter during the pipeline
processing
> >?
> > > Lionel
> > >
> > >
> >
> --------------------------------------------------------------------
> >-
> > > 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:
> ><co...@xml.apache.org>
> > > For additional commands, e-mail:
> ><co...@xml.apache.org>
> > >
> >
> >
>
>---------------------------------------------------------------------
> >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:
<co...@xml.apache.org>
> >For additional commands, e-mail:
<co...@xml.apache.org>
>
>
> --------------------------------------------------------------------
-
> 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:
<co...@xml.apache.org>
> For additional commands, e-mail:
<co...@xml.apache.org>
>
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: sunrise authentication and request Object
Posted by Lionel Crine <cr...@4dconcept.fr>.
Here is the handler :
<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://login_page"/>
<authentication uri="cocoon:raw://authuser"/>
</handler>
</handlers>
At 16:01 19/02/2003 +0100, you wrote:
>Lionel,
>
>please send also the definition of the handler.
>
>Martin
>
>----- Original Message -----
>From: "Lionel Crine" <cr...@4dconcept.fr>
>To: <co...@xml.apache.org>
>Sent: Wednesday, February 19, 2003 3:35 PM
>Subject: sunrise authentication and request Object
>
>
> > I'm using sunrise authentication and I need to get the request
>parameter
> > send by the form <tag>.
> >
> > It seems that during the pipelines processing, the request
>parameters are
> > lost so when I use "<xsp-request:get-parameter name="login"/>"
> > in my xsp page, there is nothing.
> >
> > If I don't use sunrise auhentication, I can get the parameter(s).
> >
> > I'm sure I loose the parameters during the pipeline processing, I
>saw it in
> > the core.log file.
> >
> > In my pipeline, I have :
> >
> > <!-- log the user -->
> > <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="ixia_demo"/>
> > </map:act>
> > ...
> >
> > <map:match pattern="ixia_demo">
> > <!-- check you are already logged -->
> > <map:act type="sunRise_loggedIn">
> > <map:parameter name="handler" value="foo_handler"/>
> > <map:redirect-to uri="protected/display"/>
> > </map:act>
> > <!-- if not go to page login-->
> > ...
> > </map:match>
> >
> > <map:match pattern="protected/**">
> > <map:act type="sunRise_auth">
> > <map:parameter name="handler" value="foo_handler"/>
> > <!-- welcome page -->
> > ....
> >
> >
> > Is there a way to keep the parameter during the pipeline processing
>?
> > Lionel
> >
> >
> > --------------------------------------------------------------------
>-
> > 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:
><co...@xml.apache.org>
> > For additional commands, e-mail:
><co...@xml.apache.org>
> >
>
>
>---------------------------------------------------------------------
>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: <co...@xml.apache.org>
>For additional commands, e-mail: <co...@xml.apache.org>
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: sunrise authentication and request Object
Posted by Martin Dulisch <md...@s-und-n.de>.
Lionel,
please send also the definition of the handler.
Martin
----- Original Message -----
From: "Lionel Crine" <cr...@4dconcept.fr>
To: <co...@xml.apache.org>
Sent: Wednesday, February 19, 2003 3:35 PM
Subject: sunrise authentication and request Object
> I'm using sunrise authentication and I need to get the request
parameter
> send by the form <tag>.
>
> It seems that during the pipelines processing, the request
parameters are
> lost so when I use "<xsp-request:get-parameter name="login"/>"
> in my xsp page, there is nothing.
>
> If I don't use sunrise auhentication, I can get the parameter(s).
>
> I'm sure I loose the parameters during the pipeline processing, I
saw it in
> the core.log file.
>
> In my pipeline, I have :
>
> <!-- log the user -->
> <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="ixia_demo"/>
> </map:act>
> ...
>
> <map:match pattern="ixia_demo">
> <!-- check you are already logged -->
> <map:act type="sunRise_loggedIn">
> <map:parameter name="handler" value="foo_handler"/>
> <map:redirect-to uri="protected/display"/>
> </map:act>
> <!-- if not go to page login-->
> ...
> </map:match>
>
> <map:match pattern="protected/**">
> <map:act type="sunRise_auth">
> <map:parameter name="handler" value="foo_handler"/>
> <!-- welcome page -->
> ....
>
>
> Is there a way to keep the parameter during the pipeline processing
?
> Lionel
>
>
> --------------------------------------------------------------------
-
> 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:
<co...@xml.apache.org>
> For additional commands, e-mail:
<co...@xml.apache.org>
>
---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>