AEM 6.5 Allow anonymous access
Hi everyone,
I'm currently facing an issue on AEM 6.5 version. Eveerything is working fine on AEM 6.2 and i'm not able to find why it's not working on 6.5.
We have implemented a custom behavior for the native aem projects : we generate an anonymous link which should allow users to access projects without being logged.
The anonymous link looks like this : http://[server:port]/assets.html/content/dam/projects/anonymous-folders/projectname/0073f00c-26b7-4af5-a727-d4943046a611
I updated the Sling Authentication service and set : -/assets.html/content/dam/projects/anonymous-folders
The allow anonymous access checkbox is check.
About permission, anonymous user has same permissions as 6.2 :
- path: /content/dam/projects/anonymous-folders
permission: allow
privileges: jcr:read
restrictions:
rep:glob: ''
- path: /content/dam/projects/anonymous-folders
permission: allow
privileges: jcr:read,jcr:lockManagement,jcr:modifyAccessControl,jcr:readAccessControl,jcr:versionManagement,rep:write
restrictions:
rep:glob: '/*'
The only point which is different between 6.2 and 6.5 is in the sling authenticator configuration we have 2 new fields :
osgi.http.whiteboard.context.select.name
osgi.http.whiteboard.listener.name
I let the default values which are (osgi.http.whiteboard.context.name=*) and true (but I tried with false too
)
When I try to access the anonymous project url, I'm able to see the page for 1 seconds and then i'm redirected on the login page with this in log :
org.apache.sling.auth.core.impl.SlingAuthenticator getAnonymousResolver: Anonymous access not allowed by configuration - requesting credentials
I really don't understand why the anonymous access is not allowed ![]()
Could somebody help me on this please ?
Many thanks,
Emilie



