Author: markt Date: Wed Mar 18 22:24:29 2015 New Revision: 1667636 URL: http://svn.apache.org/r1667636 Log: Fix broken unit test. Restore saving of Principal for non-login case.
Modified: tomcat/trunk/java/org/apache/catalina/authenticator/NonLoginAuthenticator.java Modified: tomcat/trunk/java/org/apache/catalina/authenticator/NonLoginAuthenticator.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/authenticator/NonLoginAuthenticator.java?rev=1667636&r1=1667635&r2=1667636&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/catalina/authenticator/NonLoginAuthenticator.java (original) +++ tomcat/trunk/java/org/apache/catalina/authenticator/NonLoginAuthenticator.java Wed Mar 18 22:24:29 2015 @@ -80,6 +80,11 @@ public final class NonLoginAuthenticator // Don't try and use SSO to authenticate since there is no auth // configured for this web application if (checkForCachedAuthentication(request, response, true)) { + // save the inherited Principal in this session so it can remain + // authenticated until it expires + if (cache) { + request.getSessionInternal(true).setPrincipal(request.getUserPrincipal()); + } return true; } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org