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