Use case - create a login page and let user log in to see certain pages in AEM production.
I know we can use CUG and enable auth for that page. But the question is about login.
How to create auth handler ?
Can we use sling form based /j_securtiy_check in PRODUCTION to let user log in ?
or do we need to have servlet and implement loginHandler ?
Solved! Go to Solution.
Views
Replies
Total Likes
If you require to have a custom login page associated with OOTB Authentication handler, then refer to the following URL - https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/please-give-me-one-example...
Regards
Albin
@Bjbnmbbj Try using sling authentication handler
https://kbwebconsult.com/authentication-handler-in-aem-custom-approach/
Thanks for quick reply. Will there be security or other kind of issue using OOTB j_security_check instead of custom auth handler ??
My use case is pretty straightforward.
If you require to have a custom login page associated with OOTB Authentication handler, then refer to the following URL - https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/please-give-me-one-example...
Regards
Albin
@Bjbnmbbj what is your requirement? If you don't want any custom login page and handler, use OOTB AEM feature, just enable /libs/granite/core/content/login.html in your dispatcher, once you configure CUG group and enable authentication requirements checkbox, when we hit any page under that page, AEM redirect the user to AEM Default login screen.
Views
Likes
Replies