Merge pull request #1 from ZerothAngel/master

Tomcat integration: Store principal in session
This commit is contained in:
Scott 2012-03-07 20:10:19 -08:00
commit 7345e03a6f
2 changed files with 2 additions and 4 deletions

View File

@ -154,8 +154,7 @@ public abstract class AbstractAuthenticator extends AuthenticatorBase implements
// Authentication sets the response headers for status and redirect if needed
principal = this.delegate.authenticate(request.getRequest(), response);
if (principal != null) {
request.setAuthType(getAuthenticationMethod());
request.setUserPrincipal(principal);
register(request, response, principal, getAuthenticationMethod(), null, null);
result = true;
}
} else {

View File

@ -163,8 +163,7 @@ public abstract class AbstractAuthenticator extends AuthenticatorBase implements
// Authentication sets the response headers for status and redirect if needed
principal = this.delegate.authenticate(request.getRequest(), response);
if (principal != null) {
request.setAuthType(getAuthenticationMethod());
request.setUserPrincipal(principal);
register(request, response, principal, getAuthenticationMethod(), null, null);
result = true;
}
} else {