Securing servlet | Community
Skip to main content
December 28, 2021
Solved

Securing servlet

  • December 28, 2021
  • 1 reply
  • 1163 views

I have a servlet that provides page content in needed JSON format. This JSON will be used by a third party and I need to provide a security level check to this. How can I provide a token authentication in servlet or in ant service/wrapper before servlet to provide a layer of security. 

This cannot be done by AEM ACL because the requirement is to do it via code using token authentication.

How can this be achieved?

 

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 arunpatidar

Hi,
Yes you need it but not in AEM. you can set it up at apache

https://www.cloudsavvyit.com/1361/how-to-setup-basic-http-authentication-on-apache/

 

1 reply

arunpatidar
Community Advisor
Community Advisor
December 28, 2021

The alternative could be the basic auth, which can be setup easily at apache level. If that suits your requirement?

 

For token I am no sure if you can validate the token from AEM and consumer from the identity provider.

Arun Patidar
December 28, 2021

so for basic auth, do i need to create userID and password in aem useradmin?

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
December 28, 2021

Hi,
Yes you need it but not in AEM. you can set it up at apache

https://www.cloudsavvyit.com/1361/how-to-setup-basic-http-authentication-on-apache/

 

Arun Patidar