Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

[AEM Gems Webinar] Accelerating Experience Manager as a Cloud Service development with Rapid Development Environments
Adobe Summit 2023 | Complete list of AEM Sessions & Labs

Securing servlet


Level 5

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?


1 Accepted Solution


Correct answer by
Community Advisor
3 Replies


Community Advisor

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.


Correct answer by
Community Advisor

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