You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Konrad Windszus (Jira)" <ji...@apache.org> on 2021/12/13 09:12:00 UTC

[jira] [Created] (SLING-10995) OakMockSlingRepository: Support proper service authentication

Konrad Windszus created SLING-10995:
---------------------------------------

             Summary: OakMockSlingRepository: Support proper service authentication
                 Key: SLING-10995
                 URL: https://issues.apache.org/jira/browse/SLING-10995
             Project: Sling
          Issue Type: Improvement
    Affects Versions: Testing Sling Mock Oak 3.1.2-1.40.0
            Reporter: Konrad Windszus


Currently all calls to {{SlingRepository.loginService(...)}} are just delegated to {{loginAdministrative(...)}} (https://github.com/apache/sling-org-apache-sling-testing-sling-mock-oak/blob/0aa239d2a8aa4b7107f04080e1fabb6b20dbb256/src/main/java/org/apache/sling/testing/mock/sling/oak/OakMockSlingRepository.java#L164).
As a full Oak repository is leveraged, one should rather use a proper service session (like in https://github.com/apache/sling-org-apache-sling-jcr-oak-server/blob/master/src/main/java/org/apache/sling/jcr/oak/server/internal/OakSlingRepository.java#L86).



--
This message was sent by Atlassian Jira
(v8.20.1#820001)