You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jean-Luc Mathieu <je...@virtualys.com> on 2004/02/26 17:24:10 UTC

Authentication failed

Hello !

I wanted to know if it is possible to read the reason of why a login has failed
using authentication framework.

I had written a class implementing Authenticator, which send when
authentication fails a DOM tree like this :
	<authentication>
		<data>reason</data>
	</authentication>

My pipeline in the sitemap has the following structure (rb-handler is well
declared) :

   <map:match pattern="login">
    <map:act type="auth-login">
     <map:parameter name="handler" value="rb-handler"/>
     <map:parameter name="parameter_login" value="{request-param:login}"/>
     <map:parameter name="parameter_passwd" value="{request-param:passwd}"/>
     <map:redirect-to uri="success.xsp"/>
    </map:act>

    <!-- Login has failed -->
    <map:generate src="pages/logic/index.xsp"/>
    <map:transform src="pages/stylesheet/index.xsl"/>
    <map:serialize/>
   </map:match>

Now, I would like to access from 'index.xsp' the tag 'data' which is returned
by my Authenticator, in order to display a message in the result HTML page. Is
anybody knows how to do that ? I've tried with session context but with no
success ...

Thanks a lot !

Jean-Luc





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