You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cz...@apache.org on 2007/12/27 14:45:28 UTC

svn commit: r607070 - /incubator/sling/trunk/sling/core/src/main/java/org/apache/sling/core/impl/auth/SlingAuthenticator.java

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 -----------------------------------