This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to annotated tag org.apache.sling.jcr.davex-1.1.0 in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jcr-davex.git
commit 4d123f2f8405b231ec8f0f368d335f007ec55dfc Author: Felix Meschberger <[email protected]> AuthorDate: Tue Nov 8 19:33:32 2011 +0000 SLING-2167 Force HTTP Basic authentication git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/jcr/davex@1199406 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/sling/jcr/davex/impl/servlets/AuthHttpContext.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/org/apache/sling/jcr/davex/impl/servlets/AuthHttpContext.java b/src/main/java/org/apache/sling/jcr/davex/impl/servlets/AuthHttpContext.java index 95e1fb2..c42e8c4 100644 --- a/src/main/java/org/apache/sling/jcr/davex/impl/servlets/AuthHttpContext.java +++ b/src/main/java/org/apache/sling/jcr/davex/impl/servlets/AuthHttpContext.java @@ -23,6 +23,7 @@ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.sling.auth.core.AuthenticationSupport; +import org.apache.sling.auth.core.spi.AuthenticationHandler; import org.osgi.service.http.HttpContext; class AuthHttpContext implements HttpContext { @@ -67,6 +68,7 @@ class AuthHttpContext implements HttpContext { throws IOException { final AuthenticationSupport localAuthenticator = this.authenticator; if ( localAuthenticator != null ) { + request.setAttribute(AuthenticationHandler.REQUEST_LOGIN_PARAMETER, "BASIC"); return localAuthenticator.handleSecurity(request, response); } // send 503/SERVICE UNAVAILABLE, flush to ensure delivery -- To stop receiving notification emails like this one, please contact "[email protected]" <[email protected]>.
