我在org.apache.sling.engine.impl.auth.SlingAuthenticator,sling.auth.requireemnts
中创建了一个排除列表,以允许shared link functionality
功能的js和css :允许我将链接分享给其他人,其他人点击链接并转到资源。如果不允许未经身份验证的用户使用这些css和js文件,样式将无法呈现。
我的问题是,我想要允许整个libs\clientlibs\granite
文件夹,或我必须排除每个文件与一个排除列表,这是添加的值在sling.auth.requirements
中像一个正则表达式libs\clientlibs\granite\*
的数量,但它不像that.Can的工作有人请帮帮我。我环顾四周,寻找这个解决方案,并在我的本地工作,它不工作。
发布于 2018-02-07 15:02:10
我不建议排除路径,因为这可能会给您的应用程序带来安全问题。
假设share links
是发布实例上的一个页面,您希望允许匿名访问。
使用CUG。参考https://helpx.adobe.com/experience-manager/6-3/sites/administering/using/closed-user-groups.html
你的站点结构应该是这样的。
|site
|| non secure section
||| share page
|| secure section 1 (apply ACL on this page)
||| child pages are secure automatically
|| secure section 2 (apply ACL on this page)
||| child pages are secure automatically
https://stackoverflow.com/questions/48634202
复制相似问题