cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Hermann <christoph.herm...@guschtel.de>
Subject Re: Auth-fw request-parameter
Date Fri, 23 Sep 2005 15:54:28 GMT
Andreas Busch schrieb:

Hello,

> Im searching for a solution to take a requestparameter over the login -
> process
>  
> exampl:
>     http://???/protected?docid=777
>  
> will be redirect to login -> do login and than to protectd
>  
> how to preserver the request-paramter {docid} untio login ?
>  
> (is it a question of redirect-to ??)

append the original uri:

in auth-conf-section:

<redirect-to uri="cocoon:/global-login"/>

sitemap-match:

<map:match pattern="global-login">
<map:redirect-to  uri="/login?resource={request-param:resource}" />
</map:match>

and also in your auth-pipeline:

<map:act type="auth-login">
<map:parameter name="handler" value="myhandlername"/>
<map:parameter name="parameter_username"
...
<map:select type="parameter">
<map:parameter name="parameter-selector-test"
value="{request-param:resource}"/>
<map:when test="">
<map:redirect-to uri="index" />
</map:when>
<map:otherwise>
<map:redirect-to uri="{request-param:resource}" />
</map:otherwise>
</map:select>
</map:act>

HTH
Christoph

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message