所以對於我目前工作的項目,之前走的是露天的開發過程中,我們創造,我們從我們的工作流程的過程中調用自定義的JSP頁面位於:C:\Alfresco\tomcat\webapps\share\custom
。目前任何人都可以訪問這個jsp頁面。但是,當我們將位置移動到C:\Alfresco\tomcat\webapps\alfresco\jsp\custom
時,總是需要登錄才能訪問該頁面,這對我來說似乎很陌生。然而,這裏的問題是我們不希望允許用戶訪問Share和Explorer,因此我們不打算在這裏配置SSO。我們希望僅允許組「經理」的人員或組「經理」中當前登錄的用戶訪問此頁面,而它位於共享方。我們已經嘗試添加以下到如何驗證添加到JSP頁面上露天分享
C:\Alfresco\tomcat\webapps\share\WEB-INF\web.xml
文件:
<security-constraint>
<web-resource-collection>
<web-resource-name>All</web-resource-name>
<url-pattern>/custom /*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>Manager</role-name>
</auth-constraint>
</security-constraint>
但這並沒有工作。有沒有人有關於我們如何獲得所需認證的建議?
謝謝分享