You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Wilson, Colin" <co...@metoffice.com> on 2003/10/22 09:43:13 UTC
Getting back to the resource called before logging in
When, for example thing.html is called, this sitemap will successfully
try to log the used in, but how to I get the user passsed back to the
resource originally called (thing.html).
<map:match pattern="*.html">
<map:act type="auth-protect">
<map:parameter name="handler" value="authhandler" />
<map:generate type="serverpages" src="xsp/protected.xsp" />
<map:transform type="xslt"
src="stylesheets/simple-page2html.xsl" />
<map:serialize />
</map:act>
</map:match>
<map:match pattern="login">
<map:act type="auth-loggedIn">
<map:parameter name="handler" value="authhandler" />
<map:redirect-to uri="{resource}" /> <!-- ------ would like
this to be the resource called above -->
</map:act>
<map:generate src="auth/login.xml" />
<map:transform src="stylesheets/simple-page2html.xsl" />
<map:serialize />
</map:match>
<map:match pattern="do.login"> <!-- ---------------- called from
auth/login.xml -------------------- -->
<map:act type="auth-login">
<map:parameter name="handler" value="authhandler" />
<map:parameter name="parameter_username"
value="{request-param:username}" />
<map:parameter name="parameter_password"
value="{request-param:password}" />
</map:act>
<map:redirect-to uri="login" />
</map:match>