ROOT/sitemap.xmap:
<authentication-manager>
<handlers>
<handler name="userhandler">
<redirect-to uri="cocoon://auth/login.form"/>
<authentication uri="cocoon://auth/authUser.xsp"/>
</handler>
</handlers>
</authentication-manager>
<!-- Auth Module -->
<map:match pattern="auth">
<map:redirect-to uri="auth/"/>
</map:match>
<map:match pattern="auth/**">
<map:mount check-reload="yes" src="modules/auth/"
uri-prefix="auth"/>
</map:match>
ROOT/modules/auth/sitemap.xmap
<map:match pattern="login.form">
<map:call function="woody">
<map:parameter name="function" value="login"/>
<map:parameter name="form-definition"
value="forms/login.xml"/>
<map:parameter name="attribute-name" value="login"/>
</map:call>
</map:match>
<map:match pattern="login-display-pipeline">
<map:generate src="forms/loginTemplate.xml"/>
<map:transform type="woody"/>
<map:transform type="i18n">
<map:parameter name="locale" value="en-US"/>
</map:transform>
<map:transform src="xsl/basic2document.xsl"/>
<map:transform
src="context://resources/xsl/system/woody-styling.xsl"/>
<map:call resource="displayappweb"/>
<map:serialize/>
</map:match>
<map:match pattern="doLogin.xml">
<map:act type="auth-loggedIn">
<map:parameter name="handler" value="userhandler"/>
<map:redirect-to uri="loggedin.xml"/>
</map:act>
<map:act type="auth-login">
<map:parameter name="handler" value="userhandler"/>
<map:parameter name="username"
value="{request:username}"/>
<map:parameter name="password"
value="{request:password}"/>
<map:redirect-to uri="{request:contextPath}"/>
</map:act>
<map:generate src="xml/LoginFailed.xml"/>
<map:transform src="xsl/basic2document.xsl"/>
<map:call resource="displayappweb"/>
<map:serialize/>
</map:match>
<map:match pattern="authUser.xsp">
<map:generate type="serverpages" src="xsp/authUser.xsp">
<map:parameter name="username"
value="{request:username}"/>
<map:parameter name="password"
value="{request:password}"/>
</map:generate>
<map:transform type="write-source"/>
<map:serialize/>
</map:match>
<map:match pattern="logout.xml">
<map:act type="auth-logout">
<map:parameter name="handler" value="userhandler"/>
<map:redirect-to uri="/"/>
</map:act>
</map:match>
-----Original Message-----
From: Nicolas Toper [mailto:[EMAIL PROTECTED]
Sent: 2004-01-30 12:23 PM
To: [EMAIL PROTECTED]
Subject: RE: Flow Redirect The auth-fw with cocoon:/ Not working
Could you send us your sitemap (well not all, but you understood)
JD Daniels <[EMAIL PROTECTED]> wrote:
the problem seems to be when the pipelines are defined in a sub sitemap.
I have the login, logout pipleines defined in sitemap under auth/
when they are defined in the root sitemap, they work fine. the logs indicate
that all of the actions and redirects are taking place, it is just
serializing out a blank html page.
JD
-----Original Message-----
From: Nicolas Toper [mailto:[EMAIL PROTECTED]
Sent: 2004-01-30 12:07 PM
To: [EMAIL PROTECTED]
Subject: Re: Flow Redirect The auth-fw with cocoon:/ Not working
I used the action with tons of redirection and it worked fine.
JD Daniels wrote:
There was a thread on this earlier, but there was not a solution I can see.
I had my auth pipelines defined in the root sitemap, and they worked great.
I need to move them to a sub-sitemap, but when I do, a blank html page is
serialized out to the client, although all the logs indicate the redirects
have taken place. the only change I can see is the addition of the cocoon://
protocol to my handler.
function login(form) {
var model = form.getModel();
form.showForm("login-display-pipeline");
cocoon.sendPage("doLogin.xml");
}
If I have this in my root sitemap. it works fine.
But if I move it to a subsitemap and configure the authentication handler:
anyone have any ideas?
JD
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran�ais !
Testez le nouveau Yahoo! Mail
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran�ais !
Testez le nouveau Yahoo! Mail