Author: asanso
Date: Thu Jul 6 07:18:53 2017
New Revision: 1800973
URL: http://svn.apache.org/viewvc?rev=1800973&view=rev
Log:
SLING-6972 - Add a request attribute in the SlingAuthenticator containing the
list of request URI suffixes handled by the default authenticator
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=1800973&r1=1800972&r2=1800973&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
Thu Jul 6 07:18:53 2017
@@ -471,10 +471,13 @@ public class SlingAuthenticator implemen
private boolean doHandleSecurity(HttpServletRequest request,
HttpServletResponse response) {
- // 0. Check for request attribute; set if not present
- Object authUriSufficesAttr =
request.getAttribute(AuthConstants.ATTR_REQUEST_AUTH_URI_SUFFIX);
- if (authUriSufficesAttr == null && authUriSuffices != null)
-
request.setAttribute(AuthConstants.ATTR_REQUEST_AUTH_URI_SUFFIX,
authUriSuffices);
+ // 0. Check for request attribute; set if not present
+ Object authUriSufficesAttr = request
+ .getAttribute(AuthConstants.ATTR_REQUEST_AUTH_URI_SUFFIX);
+ if (authUriSufficesAttr == null && authUriSuffices != null) {
+ request.setAttribute(AuthConstants.ATTR_REQUEST_AUTH_URI_SUFFIX,
+ authUriSuffices);
+ }
// 1. Ask all authentication handlers to try to extract credentials
final AuthenticationInfo authInfo = getAuthenticationInfo(request,
response);