In Grails 3.0, how do you determine that Spring Boot Security should use BCrypt to encode a password?
The following lines should contain an idea of ββwhat I think should be done (but I basically just guess):
import org.springframework.security.crypto.password.PasswordEncoder import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder PasswordEncoder passwordEncoder passwordEncoder(BCryptPasswordEncoder)
My application loads spring-boot-starter-security as a dependency:
build.gradle
dependencies { ... compile "org.springframework.boot:spring-boot-starter-security"
And I have a service connected for userDetailsService using:
CONF / spring / resources.groovy
import com.example.GormUserDetailsService import com.example.SecurityConfig beans = { webSecurityConfiguration(SecurityConfig) userDetailsService(GormUserDetailsService) }
source share