SEC-2620: Make CachingUserDetailsService constructor public for easy use in Java Config #2837
Labels
in: config
An issue in spring-security-config
in: core
An issue in spring-security-core
status: duplicate
A duplicate of another issue
type: enhancement
A general enhancement
type: jira
An issue that was migrated from JIRA
Marten Deinum (Migrated from SEC-2620) said:
Trying to configure caching for anything else then the
jdbcAuthentication()
is painful. Where ldap caching is easily configured in XML that feature is (currently) not available in Java Config (at least I couldn't find it).However to make caching configuration easier it would be nice if the
CachingUserDetailsService
could be made constructable from outside the package (maybe move to another package?). That way overriding theuserDetailsService()
method from theWebSecurityConfigurerAdapter
would allow easy wrapping of the usedUserDetailsService
with cachingThat way every
UserDetailsService
can be made cacheable without having to exposeuserCache
methods for each configurer.The text was updated successfully, but these errors were encountered: