You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@sling.apache.org by olimination <ol...@gmail.com> on 2016/01/06 11:35:00 UTC
Re: How to create a proper System User for Services?
cool, thanks Bertrand, I could use some pieces of the code and it works
basically.
I still don't understand something:
For creating such service users we still need to do a
".loginAdministrative()", but this method is actually deprecated. How do
you handle this? Should we use then the JCR API directly instead of the
SlingRepository?
On Tue, Dec 22, 2015 at 9:17 AM, Bertrand Delacretaz <bdelacretaz@apache.org
> wrote:
> Hi,
>
> On Fri, Dec 18, 2015 at 10:35 AM, Robert Munteanu <ro...@apache.org>
> wrote:
> > ...We are also working on a solution for a more declarative approach, see
> > https://issues.apache.org/jira/browse/SLING-5355 ...
>
> And you could use that code [1] as an example to create system users
> programatically. It's a work in progress right now but that part
> works.
>
> -Bertrand
>
> [1]
> https://svn.apache.org/repos/asf/sling/trunk/contrib/extensions/acldef/oak-jcr
>
--
=======================
(C)olimination.com
Re: How to create a proper System User for Services?
Posted by Bertrand Delacretaz <bd...@apache.org>.
Hi,
On Wed, Jan 6, 2016 at 11:35 AM, olimination <ol...@gmail.com> wrote:
> ...For creating such service users we still need to do a
> ".loginAdministrative()", but this method is actually deprecated. How do
> you handle this? Should we use then the JCR API directly instead of the
> SlingRepository?...
We're still debating how to best handle/mark such cases where it is
legit to use an admin session - see
https://issues.apache.org/jira/browse/SLING-5135
-Bertrand