cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ralph Goers <Ralph.Go...@dslextreme.com>
Subject Re: auth-loggedIn
Date Fri, 22 Apr 2005 20:50:31 GMT
Well, the side effect (which isn't a side effect) is that the user can 
now log in twice where before that was prohibited.  That would be a 
significant change in the behavior and at the very least would require 
some sort of configuration to enable it as it would break existing 
applications.

Ralph

Lionel Barth wrote:

> Hi,
>
> I have posted a question about auth-loggedIn a few days ago.
> I received no answer, so I tried to find a solution by myself.
>
> The point was I get an error message "User is already authenticated 
> using handler..." if I go twice through the login process in the 
> authentication-fw block.
>
> I have change the source program "DefaultHandlerManager.java" lines 
> 198-200 :
> from :
>        // are we already logged in?
>        UserHandler handler = this.getUserHandler( handlerName );
>        if ( handler != null ) {
>            throw new ProcessingException("User is already 
> authenticated using handler: " + handlerName);
>        }
>
> to
>        // are we already logged in?
>        UserHandler handler = this.getUserHandler( handlerName );
>        if ( handler == null ) {
> //        if ( handler != null ) {
> //            throw new ProcessingException("User is already 
> authenticated using handler: " + handlerName);
> //        }
> and closed the block line 268, just before
>         return handler;
>
> In fact I just return the found user handler if any.
>
> This works with my app as with the authentication-fw block sample, but 
> can someone check if any side effect can append ?
>
> Regards,
> Lionel Barth
>
>
> ---------------------------------------------------------------------
> 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


Mime
View raw message