Hi,
I want to render a content page for a given user. (the user is not logged in and only userID is available)
My approach was to use a servlet which does the following steps
- login as admin
- impersonate user (using userID)
- send redirect
It is possible to get a Session object using SlingRepository.loginAdministrative(null)
and I can impersonate the session for the given user with session.impersonate(credentials)
but the impersonation is only active in the Session object but we need an impersonate that works like the impersonate CQ provides (eg. in /useradmin or /siteadmin)
Any help would be appreciated.
Thanks.
Michael