[AEM Author instance] Exclude servlet from authentication requirement

vkeerthy

15-10-2015

Hi 

I have written a custom servlet in AEM author (v6.1). I would like to get response from  this servlet without providing auth credentials. Is it possible to have such exclusion in AEM author instance?

Current behaviour: At this moment, when I hit my servlet, the request is redirected to AEM login page. 

 

Any pointers on this will be a big help. Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

Sham_HC

15-10-2015

Configure to exclude authentication at http://localhost:port/system/console/configMgr/org.apache.sling.engine.impl.auth.SlingAuthenticator

Or

in your code add

Property(name = "sling.auth.requirements", value = "-{pathtoservlet}")

 Notice the dash prefixing the path - if you don't include the dash that means the path requires authentication.

Answers (2)

Answers (2)