dev@glassfish.java.net

Strange form authentification behaviour

From: Roman Pokhodzhay <Roman_Pokhodzhay_at_epam.com>
Date: Wed, 12 Dec 2007 11:57:25 +0200

Hello!

I can’t retrieve currently logged in user from request (When I go to the login page directly and login via form base method). It happens because method authenticate in org.apache.catalina.authenticator.FormAuthenticator doesn’t call method register(org.apache.catalina.authenticator. AuthenticatorBase) which save principal in request.

But FormAuthenticator do it only in case when resource is secure and if the re-submit happens of the original request URI.

 

Is this standart behavior?

 

Sincerely,

Roman Pokhodzhay