Author: buildbot Date: Tue Feb 28 09:28:21 2017 New Revision: 1007415 Log: Staging update by buildbot for sling
Modified: websites/staging/sling/trunk/content/ (props changed) websites/staging/sling/trunk/content/documentation/the-sling-engine/service-authentication.html Propchange: websites/staging/sling/trunk/content/ ------------------------------------------------------------------------------ --- cms:source-revision (original) +++ cms:source-revision Tue Feb 28 09:28:21 2017 @@ -1 +1 @@ -1784695 +1784705 Modified: websites/staging/sling/trunk/content/documentation/the-sling-engine/service-authentication.html ============================================================================== --- websites/staging/sling/trunk/content/documentation/the-sling-engine/service-authentication.html (original) +++ websites/staging/sling/trunk/content/documentation/the-sling-engine/service-authentication.html Tue Feb 28 09:28:21 2017 @@ -215,6 +215,11 @@ such that system administrators are in f </pre></div> </td></tr></table> +<p>The implementation uses two fallbacks in case no mapping can be found for the given subServiceName</p> +<ol> +<li>Use user mapping for the serviceName only (not considering subServiceName)</li> +<li>Use default user (if one is configured).</li> +</ol> <p>In addition a service named <code>ServiceUserMapped</code> is registered for each bundle and subservice name for which a service user mapping is configured (<a href="https://issues.apache.org/jira/browse/SLING-4312">SLING-4312</a>). By explicitly defining a (static) reference towards <code>ServiceUserMapped</code> one can defer starting the service until that service user mapping is available.</p> <h3 id="resourceresolverfactory"><code>ResourceResolverFactory</code><a class="headerlink" href="#resourceresolverfactory" title="Permanent link">¶</a></h3> <p>The second part is support for service access to the Resource Tree. To this @@ -235,6 +240,7 @@ be used by services, the <code>ResourceP with support for Service Authentication: Now new API is required, though but additional properties are defined to convey the service to authenticate for.</p> +<p>The default implementation leverages <code>ServiceUserMapper.getServiceUserID()</code> to resolve the right user id and throws a <code>LoginException</code> in case no mapping has been setup (and none of the fallbacks returned a user id != <code>null</code> either).</p> <h3 id="slingrepository"><code>SlingRepository</code><a class="headerlink" href="#slingrepository" title="Permanent link">¶</a></h3> <p>The third part is an extension to the <code>SlingRepository</code>service interface to support JCR Repository access for services:</p> @@ -276,7 +282,7 @@ support for these methods: If the method is always thrown from these methods. The JavaDoc of the methods is extended with this information.</p> <div class="timestamp" style="margin-top: 30px; font-size: 80%; text-align: right;"> - Rev. 1784576 by kwin on Mon, 27 Feb 2017 14:57:36 +0000 + Rev. 1784705 by kwin on Tue, 28 Feb 2017 09:28:03 +0000 </div> <div class="trademarkFooter"> Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project