incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r984403 - /sling/trunk/bundles/commons/auth/src/main/java/org/apache/sling/commons/auth/impl/SlingAuthenticator.java
Date Wed, 11 Aug 2010 13:38:02 GMT
Author: fmeschbe
Date: Wed Aug 11 13:38:01 2010
New Revision: 984403

URL: http://svn.apache.org/viewvc?rev=984403&view=rev
Log:
SLING-1445 Do not set the AuthenticationInfo as a request attribute any more

Modified:
    sling/trunk/bundles/commons/auth/src/main/java/org/apache/sling/commons/auth/impl/SlingAuthenticator.java

Modified: sling/trunk/bundles/commons/auth/src/main/java/org/apache/sling/commons/auth/impl/SlingAuthenticator.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/commons/auth/src/main/java/org/apache/sling/commons/auth/impl/SlingAuthenticator.java?rev=984403&r1=984402&r2=984403&view=diff
==============================================================================
--- sling/trunk/bundles/commons/auth/src/main/java/org/apache/sling/commons/auth/impl/SlingAuthenticator.java
(original)
+++ sling/trunk/bundles/commons/auth/src/main/java/org/apache/sling/commons/auth/impl/SlingAuthenticator.java
Wed Aug 11 13:38:01 2010
@@ -143,12 +143,6 @@ public class SlingAuthenticator implemen
     private static final String REQUEST_ATTRIBUTE_SESSION = "javax.jcr.Session";
 
     /**
-     * The name of the request attribute providing access to the AuthenticationInfo
-     * object.
-     */
-    private static final String REQUEST_ATTRIBUTE_AUTH_INFO = "org.apache.sling.commons.auth.spi.AuthenticationInfo";
-
-    /**
      * The name of the {@link AuthenticationInfo} property providing the option
      * {@link org.apache.sling.commons.auth.spi.AuthenticationFeedbackHandler}
      * handler to be called back on login failure or success.
@@ -350,7 +344,6 @@ public class SlingAuthenticator implemen
 
         // 1. Ask all authentication handlers to try to extract credentials
         AuthenticationInfo authInfo = getAuthenticationInfo(request, response);
-        request.setAttribute(REQUEST_ATTRIBUTE_AUTH_INFO, authInfo);
 
         // 3. Check Credentials
         if (authInfo == AuthenticationInfo.DOING_AUTH) {
@@ -371,8 +364,6 @@ public class SlingAuthenticator implemen
             AuthenticationInfo anonInfo = new AuthenticationInfo("anonymous");
             postProcess(anonInfo, request, response);
 
-            request.setAttribute(REQUEST_ATTRIBUTE_AUTH_INFO, authInfo);
-
             log.debug("handleSecurity: No credentials in the request, anonymous");
             return getAnonymousResolver(request, response);
 



Mime
View raw message