You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Fernando Mato Mira <ma...@acm.org> on 2006/03/23 11:02:05 UTC
passing parameters through authentication?
I can't seem to pass parameters to the application through the
authentication point. Tge "dtext" parameter is not
passing through to the "edit" URI.
<map:match pattern="do-login">
<!-- if we are already logged in, redirect to the protected
document -->
<map:act type="auth-loggedIn">
<map:parameter name="handler" value="multihandler"/>
<map:redirect-to uri="edit"/>
</map:act>
<!-- try to login -->
<map:act type="auth-login">
<map:parameter name="handler" value="multihandler"/>
<map:parameter name="parameter_name"
value="{request-param:username}"/>
<map:parameter name="parameter_password"
value="{request-param:password}"/>
<map:parameter name="parameter_token"
value="{request-param:ugatok}"/>
<map:redirect-to uri="edit">
<map:parameter name="dtext"
value="{request-param:dtext}"/>
</map:redirect-to>
</map:act>
<!-- something was wrong, try it again -->
<map:redirect-to uri="login"/>
</map:match>
Thanks
--
--
Fernando D. Mato Mira matomira@acm.org
Thomson Corporation Switzerland AG
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
RE: passing parameters through authentication?
Posted by Kai Mütz <km...@web.de>.
What do you want to do with this redirect? Something like this:
<map:redirect-to uri="edit?dtext={request-param:dtext}"/>
I think, You can not specify a parameter to a redirect.
http://cocoon.apache.org/2.1/userdocs/concepts/redirection.html
> -----Original Message-----
> From: users-return-86057-kmuetz=web.de@cocoon.apache.org
> [mailto:users-return-86057-kmuetz=web.de@cocoon.apache.org]On Behalf Of
> Fernando Mato Mira
> Sent: Thursday, March 23, 2006 11:02 AM
> To: users@cocoon.apache.org
> Subject: passing parameters through authentication?
>
>
> I can't seem to pass parameters to the application through the
> authentication point. Tge "dtext" parameter is not
> passing through to the "edit" URI.
>
> <map:match pattern="do-login">
> <!-- if we are already logged in, redirect to the protected
> document -->
> <map:act type="auth-loggedIn">
> <map:parameter name="handler" value="multihandler"/>
> <map:redirect-to uri="edit"/>
> </map:act>
> <!-- try to login -->
> <map:act type="auth-login">
> <map:parameter name="handler" value="multihandler"/>
> <map:parameter name="parameter_name"
> value="{request-param:username}"/>
> <map:parameter name="parameter_password"
> value="{request-param:password}"/>
> <map:parameter name="parameter_token"
> value="{request-param:ugatok}"/>
> <map:redirect-to uri="edit">
> <map:parameter name="dtext"
> value="{request-param:dtext}"/>
> </map:redirect-to>
> </map:act>
> <!-- something was wrong, try it again -->
> <map:redirect-to uri="login"/>
> </map:match>
>
> Thanks
>
> --
> --
> Fernando D. Mato Mira matomira@acm.org
> Thomson Corporation Switzerland AG
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org