sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r607070 - /incubator/sling/trunk/sling/core/src/main/java/org/apache/sling/core/impl/auth/SlingAuthenticator.java
Date Thu, 27 Dec 2007 13:45:28 GMT
Author: cziegeler
Date: Thu Dec 27 05:45:27 2007
New Revision: 607070

URL: http://svn.apache.org/viewvc?rev=607070&view=rev
Log:
Only send error if no authentication handler handled this.

Modified:
    incubator/sling/trunk/sling/core/src/main/java/org/apache/sling/core/impl/auth/SlingAuthenticator.java

Modified: incubator/sling/trunk/sling/core/src/main/java/org/apache/sling/core/impl/auth/SlingAuthenticator.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/sling/core/src/main/java/org/apache/sling/core/impl/auth/SlingAuthenticator.java?rev=607070&r1=607069&r2=607070&view=diff
==============================================================================
--- incubator/sling/trunk/sling/core/src/main/java/org/apache/sling/core/impl/auth/SlingAuthenticator.java
(original)
+++ incubator/sling/trunk/sling/core/src/main/java/org/apache/sling/core/impl/auth/SlingAuthenticator.java
Thu Dec 27 05:45:27 2007
@@ -45,6 +45,8 @@
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
+import sun.security.krb5.internal.Ticket;
+
 /**
  * The <code>SlingAuthenticator</code> class is the default implementation of
  * the {@link SlingAuthenticator} interface. This class supports :
@@ -294,9 +296,11 @@
             }
         }
 
-        // no handler could send an authentication request, fail with FORBIDDEN
-        log.info("requestAuthentication: No handler for request, sending FORBIDDEN");
-        sendFailure(response);
+        if ( !done ) {
+            // no handler could send an authentication request, fail with FORBIDDEN
+            log.info("requestAuthentication: No handler for request, sending FORBIDDEN");
+            sendFailure(response);
+        }
     }
 
     // ----------- ManagedService interface -----------------------------------



Mime
View raw message