You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2015/06/23 12:09:16 UTC

svn commit: r1687017 - /tomcat/trunk/java/org/apache/catalina/authenticator/jaspic/JaspicAuthenticator.java

Author: markt
Date: Tue Jun 23 10:09:16 2015
New Revision: 1687017

URL: http://svn.apache.org/r1687017
Log:
Fixed authentication caching within the session for JASPIC authenticator
Patch by fjodorver

Modified:
    tomcat/trunk/java/org/apache/catalina/authenticator/jaspic/JaspicAuthenticator.java

Modified: tomcat/trunk/java/org/apache/catalina/authenticator/jaspic/JaspicAuthenticator.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/authenticator/jaspic/JaspicAuthenticator.java?rev=1687017&r1=1687016&r2=1687017&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/authenticator/jaspic/JaspicAuthenticator.java (original)
+++ tomcat/trunk/java/org/apache/catalina/authenticator/jaspic/JaspicAuthenticator.java Tue Jun 23 10:09:16 2015
@@ -65,6 +65,10 @@ public class JaspicAuthenticator extends
 
     @Override
     public boolean authenticate(Request request, HttpServletResponse response) throws IOException {
+        if (checkForCachedAuthentication(request, response, true)) {
+            return true;
+        }
+
         MessageInfo messageInfo = new MessageInfoImpl(request, response, true, getAuthMethod());
 
         AuthConfigFactory factory = AuthConfigFactory.getFactory();



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org