Skip to content

Conversation

big-cir
Copy link
Contributor

@big-cir big-cir commented Feb 10, 2025

Overview

  • added setUserDetailsMapper method to allow customization of UserDetails mapping using RowMapper
  • added setGrantedAuthorityMapper method to allow customization of GrantedAuthority mapping using RowMapper
  • unit tests for updated methods

Related

@big-cir big-cir force-pushed the refactor/jdbc-user-details-manager-private-to-protected-methods branch from 6b6a462 to 548be22 Compare February 10, 2025 06:43
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Feb 10, 2025
Copy link
Contributor

@jzheaux jzheaux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR, @big-cir! Can we try composition first? I've left some feedback inline for details on how that could be done.

@big-cir big-cir force-pushed the refactor/jdbc-user-details-manager-private-to-protected-methods branch 2 times, most recently from 78af6dc to 52faf76 Compare February 14, 2025 01:00
Copy link
Contributor

@jzheaux jzheaux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, @big-cir, yes, that's what I'm thinking. Please see some additional feedback about the method and then let's also proceed with doing the same for mapToGrantedAuthority.

…Manager

- Closes spring-projectsgh-16540

Signed-off-by: dae won <eodnjs01477@gmail.com>
Signed-off-by: dae won <eodnjs01477@gmail.com>
Signed-off-by: dae won <eodnjs01477@gmail.com>
Signed-off-by: dae won <eodnjs01477@gmail.com>
@big-cir big-cir force-pushed the refactor/jdbc-user-details-manager-private-to-protected-methods branch from 52faf76 to d506c1a Compare February 15, 2025 13:26
@big-cir
Copy link
Contributor Author

big-cir commented Feb 15, 2025

@jzheaux,
Thank you very much for your detailed feedback on the setUserDetailsMapper method in JdbcUserDetailsManager.
I've implemented all the changes you suggested. Would you kindly review the updates when you have a moment? I'm eager to ensure the modifications meet the project's standards and your expectations.

Thank you again for your time and expertise.

@big-cir big-cir force-pushed the refactor/jdbc-user-details-manager-private-to-protected-methods branch 4 times, most recently from 7ee7de6 to 50fd7c0 Compare February 15, 2025 14:55
- Add unit tests for setGrantedAuthorityMapper method

Signed-off-by: dae won <eodnjs01477@gmail.com>
@big-cir big-cir force-pushed the refactor/jdbc-user-details-manager-private-to-protected-methods branch from 50fd7c0 to f06c979 Compare February 15, 2025 14:59
@big-cir big-cir changed the title Make mapToUser and mapToGrantedAuthority protected in JdbcUserDetails… Add customizable RowMappers for user details and authorities in JdbcUserDetailsManager Feb 18, 2025
@big-cir big-cir requested a review from jzheaux February 18, 2025 06:49
@jzheaux jzheaux self-assigned this Feb 24, 2025
@jzheaux jzheaux added in: core An issue in spring-security-core type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Feb 24, 2025
@jzheaux jzheaux merged commit 45b51fe into spring-projects:main Feb 24, 2025
6 checks passed
@jzheaux jzheaux added this to the 6.5.0-M3 milestone Feb 24, 2025
@big-cir big-cir deleted the refactor/jdbc-user-details-manager-private-to-protected-methods branch May 24, 2025 05:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core An issue in spring-security-core type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mapToUser/mapToGrantedAuthority in JdbcUserDetailsManager to become protected
3 participants