2012-07-12 24 views
1

想使用Spring安全性,但有沒有比這更好的?此外,想使用CAS(中央身份驗證服務)與Spring Security for Single Sign On進行集成?有什麼建議麼?這可能是不同的問題,但任何想法如何在GWT中使用spring taglib來隱藏某些基於用戶角色的事情?確保(使用角色和權限)Web應用程序的最佳方法?

回答

0

Thinking to use Spring security but is there better than that? 也許

Also, thinking to use CAS (Central Authentication Service) to integrate with Spring security for Single Sign On? Any suggestions?

春季安全與CAS無縫集成,您需要做的僅僅基於命名空間的配置,並要求在客戶端上時加豆。

See Documentation

It might be different question but any idea how to use spring taglib in GWT to hide certain things based on user role?

是的,你可以做到這一點使用等提供您包括您的GWT部件到JSP中的安全性的taglib:

這裏是如何做到這一點,但避風港」的教程對它進行測試。

custom-integration-of-gwt-widgets-into-jsps

the-role-of-jsps-in-a-gwt-world/

參見:

+0

我認爲唯一棘手的是你必須生成Spring和CAS Server之間的通信證書。關於spring taglib在上面指定的頁面中看不到任何用法。 – 2012-07-13 07:30:33

+0

檢查我已鏈接的stackoverflow問題。 – Ravi 2012-07-13 12:46:21

+0

檢查了兩者的優點和缺點。我認爲春季安全是贏家。 – 2012-07-19 14:53:34

2

我還建議偉大的(但也許更容易)安全庫來自Apache:Shiro。

下面是與CAS集成的文檔:http://shiro.apache.org/cas.html

+0

爲什麼Apache Shiro比Spring安全性更好? – 2012-07-16 08:34:33

相關問題