Skip to content

mapToUser/mapToGrantedAuthority in JdbcUserDetailsManager to become protected #16540

Closed
@flozano

Description

@flozano

Expected Behavior

I'd like to be able to override mapToUser and mapToGrantedAuthority in order to be able to customize how the user is mapped and what's the actual class to be used, and what's the instance of GrantedAuthority to be used.

Current Behavior

	private UserDetails mapToUser(ResultSet rs, int rowNum) throws SQLException {

Context
JdbcUserDetailsManager is not final and can be extended to override some of its behavior. It already has protected methods. By making this one protected, the extensibility can be much simplified.

The loadUsersByUsername is protected and can be extended already, so this is a minimal change.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions