The Spring Security plugin provides a bean named \'springSecurityService\' of type grails.plugins.springsecurity.SpringSecurityService
. I need to override the <
Go back to subclassing and redefining the bean in resources.groovy
, but satisfy the dependencies. They're auto-injected by name but all listed, so add them explicitly to your redefinition:
springSecurityService(CustomSpringSecurityService) {
authenticationTrustResolver = ref('authenticationTrustResolver')
grailsApplication = ref('grailsApplication')
passwordEncoder = ref('passwordEncoder')
objectDefinitionSource = ref('objectDefinitionSource')
userDetailsService = ref('userDetailsService')
userCache = ref('userCache')
}