Spring Security ACL - cache configuration

34 Views Asked by At

I try to update the spring-security-acl plugin in my Grails project from spring-security-acl:4.2.20.RELEASE to spring-security-acl:6.1.6. I see that the class "org.springframework.security.acls.domain.EhCacheBasedAclCache" is no longer exist in this version, I want to replace it by "org.springframework.security.acls.domain.SpringCacheBasedAclCache", but I encounter many problems, need help in updating the configuration of cache for the ACLs :

private configureCoreBeans = { conf ->

        // acl cache
        aclCacheManager(EhCacheManagerFactoryBean) {
            cacheManagerName = 'spring-security-acl-cache-' + UUID.randomUUID()
        }
        ehcacheAclCache(EhCacheFactoryBean) {
            cacheManager = ref('aclCacheManager')
            cacheName = 'aclCache'
        }
        aclCache(EhCacheBasedAclCache, ref('ehcacheAclCache'), ref('aclPermissionGrantingStrategy'), ref('aclAuthorizationStrategy'))

...

}

Need help in updating the configuration of cache for the ACLs

0

There are 0 best solutions below