grails-audit-logging-plugin icon indicating copy to clipboard operation
grails-audit-logging-plugin copied to clipboard

springSecurityService bean not detected for automatic auditRequestResolver bean config

Open robertoschwald opened this issue 4 years ago • 0 comments

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

robertoschwald avatar Dec 17 '20 13:12 robertoschwald