Skip to content

SEC-2763: Make JdbcUserDetailsManager extensible #2991

@spring-projects-issues

Description

@spring-projects-issues

Mauro Molinari (Migrated from SEC-2763) said:

JdbcUserDetailsManager is not easily extensible:

  • query strings are private and there are no getter methods
  • insertUserAuthorities(UserDetails) and deleteUserAuthorities(String) are private
  • userCache is private and there is no getter method
  • other useful methods like validateUserDetails(UserDetails) and validateAuthorities(Collection<? extends GrantedAuthority>) are also private...

This is in contrast with JdbcDaoImpl whose design is much better from this point of view, except for org.springframework.security.core.userdetails.jdbc.JdbcDaoImpl.groupAuthoritiesByUsernameQuery which also misses a getter method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: coreAn issue in spring-security-coretype: enhancementA general enhancementtype: jiraAn issue that was migrated from JIRA

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions