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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to