Hi All,
repository.loginAdministrative(null) is a deprecated method of obtaining a session instance. What would be an alternative that can be used here.
Any thoughts/pointers here, will be helpful.
Solved! Go to Solution.
Views
Replies
Total Likes
You should use Sling service resource resolver for getting session in
backend services. This is now recommended for getting sessions as it
restricts the access to the service code only on the required repository
paths unlike loginAdministrative which exposes full permissions to your
services. You can follow the below example-
https://helpx.adobe.com/
Views
Replies
Total Likes
Views
Replies
Total Likes
You should use Sling service resource resolver for getting session in
backend services. This is now recommended for getting sessions as it
restricts the access to the service code only on the required repository
paths unlike loginAdministrative which exposes full permissions to your
services. You can follow the below example-
https://helpx.adobe.com/
Views
Replies
Total Likes
Hi Kunal/Praveen,
Thank you for your replies.
Views
Replies
Total Likes
I need to unlock a page through code which is locked by another user.
Do i need to create a service user similar to admin user which can be used to impersonate and unlock resources? How can this be achieved?
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies