improved async authentication

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@156 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Greg Wilkins 2009-04-17 01:13:22 +00:00
parent ed2408538b
commit f160c90f06
1 changed files with 5 additions and 2 deletions

View File

@ -412,8 +412,11 @@ public abstract class SecurityHandler extends HandlerWrapper implements Authenti
try
{
final Authenticator authenticator = _authenticator;
final Authentication authentication = authenticator.validateRequest(request, response, isAuthMandatory);
Authentication authentication = base_request.getAuthentication();
if (authentication==null || authentication==Authentication.NOT_CHECKED)
authentication=authenticator.validateRequest(request, response, isAuthMandatory);
if (authentication instanceof Authentication.ResponseSent)
{
base_request.setHandled(true);