Skip to content

JdbcUserDetailsManager.setEnableUpdatePassword #16863

Open
@rwinch

Description

@rwinch

JdbcUserDetailsManager should implement UserDetailsPasswordService and have a property enableUpdatePassword that is false by default (to prevent migrations that might produce passwords that are too large for the current database schema). This would allow users to easily opt into migrating passwords with JDBC. The new method would look something like this:

public UserDetails updatePassword(UserDetails user, String newPassword) {
    UserDetails updated = User.withUserDetails(user).password(newPassword).build();
    updateUser(updated);
    return updated;
}

Metadata

Metadata

Assignees

Labels

in: coreAn issue in spring-security-corestatus: ideal-for-contributionAn issue that we actively are looking for someone to help us withtype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions