Re: Impersonation via ServiceResourceResolver

2018-01-10 Thread Johan Ruttens
Hi Robert, We would like to use the impersonation via a service user in the following scenario: an event handler takes care of saving an 'incoming' page and we would to have props like 'lastModifiedBy' having the correct user (hence the impersonation). Regarding your remark "- the impersonator

Re: Impersonation via ServiceResourceResolver

2018-01-10 Thread Robert Munteanu
Hi Johan, On Fri, 2018-01-05 at 23:46 +0100, Johan Ruttens wrote: > Hi, > > We have to following piece of functionality: > > ... > final Session adminSession = > adminResourceResolver.adaptTo(Session.class); > Session userSession = adminSession.impersonate(new > SimpleCredentials(userID,