1
我正在使用grails構建一個主要用作服務框架的應用程序。我的問題是:服務是否可以像控制器一樣保護?使用Shiro在grails中保護服務
基於URI的例子:
class SecurityFilters {
def filters = {
all(uri: "/**") {
before = {
// Ignore direct views (e.g. the default main index page).
if (!controllerName) return true
// Access control by convention.
accessControl()
}
}
}
}
謝謝。我正在使用shiro,而不是acegi。我想利用過濾來保護服務。對不起,如果不明確。 – Brandon 2010-02-03 16:01:00
謝謝你的意見。 – Brandon 2010-02-26 16:13:52