Grails implementation of grails-spring-security-core plugin, it particularly focus on chapters:
- Authentication Providers (chapter 10, at the moment of writing)
- Custom UserDetailsService (chapter 11)
Plugin documentation is available on http://grails-plugins.github.io/grails-spring-security-core/v3/index.html
- Open up file grails-app/conf/spring/resources.groovy
// Place your Spring DSL code here
beans = {
//userDetailsService(AuthManagerService)
customAuthenticationProvider(CustomAuthenticationProvider) {
// attributes
}
}- Enable only one of the configurations(userDetailsService or customAuthenticationProvider), ensure to comment/delete the remaining one.
Grails execution
cd grails-spring-security
grails run-appGradle execution
cd grails-spring-security
gradle bootRun