Author: fmeschbe
Date: Wed Sep 1 15:58:28 2010
New Revision: 991579
URL: http://svn.apache.org/viewvc?rev=991579&view=rev
Log:
SLING-1717 Provide resource resolver as request attribute before calling custom
AuthenticationFeedbackHandler for successful login
Modified:
sling/trunk/bundles/auth/core/src/main/java/org/apache/sling/auth/core/impl/SlingAuthenticator.java
Modified:
sling/trunk/bundles/auth/core/src/main/java/org/apache/sling/auth/core/impl/SlingAuthenticator.java
URL:
http://svn.apache.org/viewvc/sling/trunk/bundles/auth/core/src/main/java/org/apache/sling/auth/core/impl/SlingAuthenticator.java?rev=991579&r1=991578&r2=991579&view=diff
==============================================================================
---
sling/trunk/bundles/auth/core/src/main/java/org/apache/sling/auth/core/impl/SlingAuthenticator.java
(original)
+++
sling/trunk/bundles/auth/core/src/main/java/org/apache/sling/auth/core/impl/SlingAuthenticator.java
Wed Sep 1 15:58:28 2010
@@ -665,6 +665,9 @@ public class SlingAuthenticator implemen
// handle success feedback
if (feedbackHandler != null) {
+ // provide the resource resolver to the feedback handler
+ request.setAttribute(REQUEST_ATTRIBUTE_RESOLVER, resolver);
+
// call the feedback handler, terminating the request if
// so desired by the handler
if (feedbackHandler.authenticationSucceeded(request, response,