AEM login handler for Production | Community
Skip to main content
January 6, 2023
Solved

AEM login handler for Production

  • January 6, 2023
  • 3 replies
  • 1632 views

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 ?

https://sling.apache.org/documentation/the-sling-engine/authentication/authentication-authenticationhandler/form-based-authenticationhandler.html

or do we need to have servlet and implement loginHandler ?

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by AlbinIs1

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-for-how-to-create-login-form-using/m-p/566017#M141234

Regards

Albin

https://www.albinsblog.com

 

3 replies

Jagadeesh_Prakash
Community Advisor
Community Advisor
January 6, 2023
BjbnmbbjAuthor
January 6, 2023

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. 

Jagadeesh_Prakash
Community Advisor
Community Advisor
January 9, 2023

@bjbnmbbj  I dont think their would be any security issues. But are you looking at any specific security concern let me know

AlbinIs1Community AdvisorAccepted solution
Community Advisor
January 7, 2023

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-for-how-to-create-login-form-using/m-p/566017#M141234

Regards

Albin

https://www.albinsblog.com

 

Shashi_Mulugu
Community Advisor
Community Advisor
January 10, 2023

@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.