drago
drago

Reputation: 1207

Spring security no password encoding

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

Upvotes: 2

Views: 3466

Answers (1)

Burt Beckwith
Burt Beckwith

Reputation: 75671

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)
}

Upvotes: 7

Related Questions