Skip to content

JdbcUserDetailsManager.setEnableUpdatePassword #16863

Closed

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;
}

Activity

  1. added
    status: waiting-for-triage
    type: enhancement
    on Apr 1, 2025
  2. self-assigned this
    on Apr 1, 2025
  3. added
    status: ideal-for-contribution
    in: core
    and removed
    status: waiting-for-triage
    on Apr 1, 2025
  4. franticticktick commented on Apr 1, 2025

    @franticticktick
    Contributor

    Hi @rwinch, could you assign this ticket to me please?

  5. vasanth-79 commented on Apr 4, 2025

    @vasanth-79
    Contributor

    Hi @rwinch, Could you please assign this to me?

    I've made the changes and raised PR #16881

  6. rwinch commented on Apr 8, 2025

    @rwinch
    MemberAuthor

    @vasanth-79 Thank you for the PR. Can you please add a property enableUpdatePassword that is false by default and only runs this method if true? Please also add some tests.

  7. jhl221123 commented on May 7, 2025

    @jhl221123
    Contributor

    Hi @rwinch,

    Following up on the closure of PR #16881 and your recent comment there, I would like to work on this issue. I understand the need for the enableUpdatePassword property (defaulting to false) and additional tests as discussed.

    Could you please assign this to me?

    Thanks

  8. injae-kim commented on May 9, 2025

    @injae-kim

    fix PR: #17071

    @jhl221123 made awesome fix PR #17071, PTAL when you have time 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: corestatus: ideal-for-contributiontype: enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions