Anonymous access not allowed by configuration - requesting credentials | Community
Skip to main content
May 19, 2017
Solved

Anonymous access not allowed by configuration - requesting credentials

  • May 19, 2017
  • 2 replies
  • 13401 views

So I'm getting this error org.apache.sling.auth.core.impl.SlingAuthenticator getAnonymousResolver: Anonymous access not allowed by configuration - requesting credentials whenever I try to invoke my servlet from DefaultHttpClient. Here is my code

 HttpPost post = new HttpPost("http://localhost:4502/bin/sitemap/demo"+"?rootPath="+"/content/geometrixx");
     @SuppressWarnings("deprecation")
    org.apache.http.impl.client.DefaultHttpClient client = new org.apache.http.impl.client.DefaultHttpClient();
     org.apache.http.HttpResponse response = null;

     response = client.execute(post);

I did exactly the same as suggested in helpx articles listed below but still not working.
https://helpx.adobe.com/experience-manager/using/post_files.html

https://helpx.adobe.com/experience-manager/using/multiple-digital-assets.html

Please help.

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 MC_Stuff

Hi Vitis,

Add "/bin/sitemap/demo" in authentication requirement at http://host:port/system/console/configMgr/org.apache.sling.engine.impl.auth.SlingAuthenticator

Thanks,

2 replies

MC_Stuff
MC_StuffAccepted solution
May 20, 2017

Hi Vitis,

Add "/bin/sitemap/demo" in authentication requirement at http://host:port/system/console/configMgr/org.apache.sling.engine.impl.auth.SlingAuthenticator

Thanks,

October 24, 2024

Can only admins add the URL to the list in authentication requirements? I try to add the URL but get this error:
The request failed:

NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'https://aemuat.lta.gov.sg/system/console/configMgr/org.apache.sling.engine.impl.auth.SlingAuthenticator'.
vitis90Author
May 21, 2017

Thank you! It's working! :)