Skip to content

Make it easier to configure a UserCache for a UserDetailsService #4139

Closed
@mdeinum

Description

@mdeinum

When using the XML namespace to configure a user-service it was pretty easy to make it a caching one by adding a reference using the cache-ref attribute and point it to a UserCache implementation.

With Java based configuration this option is only available for the jdbcAuthentication and not for a plain UserDetailsService or LdapUserDetailsService.

It would be nice if it was possible to specify a userCache for each option available and that that would wrap the UserDetailsService in a CachingUserDetailsService when needed.

Related: #2837

Stackoverflow: http://stackoverflow.com/questions/40766098/springcachebasedusercache-is-null/40782952?noredirect=1#comment68816495_40782952

Metadata

Metadata

Assignees

Labels

in: coreAn issue in spring-security-core

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions