Spring security no password encoding

冷暖自知 提交于 2020-01-15 05:18:07

问题


Would it be possible to turn off password encoding in Spring Security? If so, how?


回答1:


It's a really really bad idea in general, but if you have a use case for it then it is doable. Override the passwordEncoder bean in grails-app/conf/spring/resources.groovy:

import org.springframework.security.authentication.encoding.PlaintextPasswordEncoder

beans = {
   passwordEncoder(PlaintextPasswordEncoder)
}


来源:https://stackoverflow.com/questions/8465016/spring-security-no-password-encoding

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!