Is it possible to create account user to access /apps in publish instance in higher environments?
Context: We have implemented a servlet that sits in publish instance and the path for the node is inside /apps. The servlet uses basic authentication by using (username: admin, password: admin). We tested in local publish instance and it is working as expected. We assume it works in local because the user is an admin. I was wondering if the same way would work in publish instance in higher environments once we have a user account created in publish instance? If so, what's the process to create one?
Solved! Go to Solution.
Views
Replies
Total Likes
Hello @aemUser2345 ,
I don't know of a reason why not. Are you on AEM on-premises or AEMaaCS or AMS? Are there errors that are seen when doing so?
I'm not sure why the servlet needs to sign-in to AEM to be accessed.
Usually with using an AEM Dispatcher, the servlet's path can be allowed to access in the dispatcher.any file like following,
/0001 {/type "allow" /url "/bin/servletname" }
I can imagine you having a different setup and may or not be using Dispatcher.
thanks,
PreetpalSingh
Hello @codingninja ,
It sounds like you need a generic user that can access the node under /apps from your servlet.
If that is correct, you would want to create a 'Service user's on publish instance and provide it read permissions on /apps node or any specific nodes across AEM.
Then, in your servlet code you can use the subservience name of that Service user.
If it's a different use case, please expand on it and the group can provide their guidance.
Hope that helps!
Thanks,
PreetpalSingh
Related detailed documentation and how-tos:
https://medium.com/@toimrank/aem-service-user-mapping-and-resourceresolver-bd4a15d8cff2
Thanks for your reply. I am referring to log in user, not service user. It is similar to how user login when in home page: http://localhost:4503/aem/start.html except I am looking to create one in higher environment. Is it possible to do so?
Hello @aemUser2345 ,
I don't know of a reason why not. Are you on AEM on-premises or AEMaaCS or AMS? Are there errors that are seen when doing so?
I'm not sure why the servlet needs to sign-in to AEM to be accessed.
Usually with using an AEM Dispatcher, the servlet's path can be allowed to access in the dispatcher.any file like following,
/0001 {/type "allow" /url "/bin/servletname" }
I can imagine you having a different setup and may or not be using Dispatcher.
thanks,
PreetpalSingh
Views
Likes
Replies
Views
Likes
Replies