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.
Solved! Go to Solution.
Hi Vitis,
Add "/bin/sitemap/demo" in authentication requirement at http://host:port/system/console/configMgr/org.apache.sling.engine.impl.auth.SlingAuthenticator
Thanks,
Hi Vitis,
Add "/bin/sitemap/demo" in authentication requirement at http://host:port/system/console/configMgr/org.apache.sling.engine.impl.auth.SlingAuthenticator
Thanks,
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'.
Views
Replies
Total Likes
Thank you! It's working! :)
Views
Replies
Total Likes
Views
Likes
Replies