【发布时间】:2012-01-17 21:33:09
【问题描述】:
是否可以在 Spring Security 中关闭密码编码?如果是这样,怎么做?
【问题讨论】:
-
我不确定任何配置设置,但是通过插件中的一个小黑客肯定可以,如果您对黑客方法感兴趣,请告诉我,我会发布所需的更改,或者更好的破解插件 zip :)
-
cmets 的否决按钮在哪里 ;) 不要破解插件 - 做对了。
是否可以在 Spring Security 中关闭密码编码?如果是这样,怎么做?
【问题讨论】:
总的来说,这是一个非常糟糕的主意,但如果你有一个用例,那么它是可行的。覆盖grails-app/conf/spring/resources.groovy 中的passwordEncoder bean:
import org.springframework.security.authentication.encoding.PlaintextPasswordEncoder
beans = {
passwordEncoder(PlaintextPasswordEncoder)
}
【讨论】: