grails-audit-logging-plugin
grails-audit-logging-plugin copied to clipboard
springSecurityService bean not detected for automatic auditRequestResolver bean config
Seems in Grails 3.3.10 the order of plugin initialisation is changed even if loadAfter = ['springSecurityCore'] is set, so the springSecurityService bean is not detected in AuditLoggingGrailsPlugin some times. Therefore, the DefaultAuditRequestResolver is initialized instead of the SpringSecurityRequestResolver
Workaround for now is to manually register the SpringSecurityRequestResolver in resources.groovy.
auditRequestResolver(SpringSecurityRequestResolver) {
springSecurityService = ref('springSecurityService')
}