【发布时间】:2013-02-22 00:52:53
【问题描述】:
我是 grails 新手,想知道是否有办法在 grails 应用程序中添加第三方 servlet?
我正在尝试将Waffle 与 grails 一起使用。我成功地使用了 Spring Security 在 MVC 应用程序中使用了 Waffle,如下所述:https://github.com/dblock/waffle/blob/master/Docs/spring/SpringSecurityAuthenticationProvider.md
在我的 MVC 应用程序中,我能够添加这样的 bean 进行身份验证:
<bean id="waffleNegotiateSecurityFilter" class="waffle.spring.NegotiateSecurityFilter">
<property name="provider" ref="waffleSecurityFilterProviderCollection"/>
<property name="allowGuestLogin" value="false"/>
<property name="principalFormat" value="fqn"/>
<property name="roleFormat" value="both"/>
</bean>
【问题讨论】:
-
您是否尝试过使用 DSL 将该 bean 声明添加到您的 grails-app/conf/spring/resources.groovy 中?
-
按照提供的链接,您不需要添加任何额外的过滤器。只需配置 Spring Security,使用标准 Spring Security 插件即可
-
@IgorArtamonov 今天下午我将尝试这种方法。我会回来报告的。谢谢
标签: grails spring-mvc spring-security waffle