Skip to content

springSecurityService bean not detected for automatic auditRequestResolver bean config #209

@robertoschwald

Description

@robertoschwald

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions