On Tue, 2018-07-17 at 00:40 +0530, Hasini Witharana wrote: > How to get the sling admin session from Sling Repository? > > I am using loginService(String s1, String s2) method and what should > be s1 > and s2?
You should be using loginAdminstrative(null). Although the method is deprecated now, it has its uses (and we should probably undeprecate it, see [1]). Robert [1]: https://issues.apache.org/jira/browse/SLING-7613
