You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by johnson <jo...@soho.club.tw> on 2007/01/16 10:58:17 UTC
redir in auth-fw
Hi!
In the auth-fw(flow) sitemap, there is a <authentication-manager>
component like below.
<map:component-configurations>
<authentication-manager>
<handlers>
<handler name="flowdemohandler">
<redirect-to uri="cocoon:/login"/>
<authentication uri="cocoon:raw:/authenticate"/>
</handler>
</handlers>
</authentication-manager>
</map:component-configurations>
I want to use some request param like
<redirect-to uri="cocoon:/login?p={request-param:p}"/>
how to set the parameter like {request-param:p}
Best Regards
johnson
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: redir in auth-fw
Posted by Carsten Ziegeler <cz...@apache.org>.
> tks
>
> got the resource, but the resource is like
>
> http://localhost:8080/...?p=1
>
> how to get the parameter p in resource
>
You have to pass the url, the best way is propably writing an Action
which you can place in your sitemap.
HTH
Carsten
--
Carsten Ziegeler
http://www.osoco.org/weblogs/rael/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: redir in auth-fw
Posted by 許議中 <jo...@erp.tw>.
tks
got the resource, but the resource is like
http://localhost:8080/...?p=1
how to get the parameter p in resource
best regards
johnson
Carsten Ziegeler 提到:
> Hi,
>
> if you just specify
> <redirect-to uri="cocoon:/login"/>
> the authentication-fw will automatically call
> cocoon:/login?resource={original uri}
>
> So you can get the original uri using the "resource" request parameter
> in your login pipeline.
>
> HTH
> Carsten
>
> johnson wrote:
>
>>Hi!
>>
>>In the auth-fw(flow) sitemap, there is a <authentication-manager>
>>component like below.
>>
>><map:component-configurations>
>><authentication-manager>
>><handlers>
>><handler name="flowdemohandler">
>><redirect-to uri="cocoon:/login"/>
>><authentication uri="cocoon:raw:/authenticate"/>
>></handler>
>></handlers>
>></authentication-manager>
>></map:component-configurations>
>>
>>I want to use some request param like
>>
>><redirect-to uri="cocoon:/login?p={request-param:p}"/>
>>how to set the parameter like {request-param:p}
>>
>>Best Regards
>>
>>johnson
>>
>>---------------------------------------------------------------------
>>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
Re: redir in auth-fw
Posted by Carsten Ziegeler <cz...@apache.org>.
Hi,
if you just specify
<redirect-to uri="cocoon:/login"/>
the authentication-fw will automatically call
cocoon:/login?resource={original uri}
So you can get the original uri using the "resource" request parameter
in your login pipeline.
HTH
Carsten
johnson wrote:
> Hi!
>
> In the auth-fw(flow) sitemap, there is a <authentication-manager>
> component like below.
>
> <map:component-configurations>
> <authentication-manager>
> <handlers>
> <handler name="flowdemohandler">
> <redirect-to uri="cocoon:/login"/>
> <authentication uri="cocoon:raw:/authenticate"/>
> </handler>
> </handlers>
> </authentication-manager>
> </map:component-configurations>
>
> I want to use some request param like
>
> <redirect-to uri="cocoon:/login?p={request-param:p}"/>
> how to set the parameter like {request-param:p}
>
> Best Regards
>
> johnson
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
--
Carsten Ziegeler - Chief Architect
http://www.s-und-n.de
http://www.osoco.org/weblogs/rael/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org