Spring Security
  1. Spring Security
  2. SEC-1737

Provide JPA-based UserDetailsService & UserDetailsManager abstract implementations

    Details

      Description

      Sometimes it's handy to have a JPA-based UserDetailsService or UserDetailsManager instead of a JDBC-based one. The attached classes are abstract classes that do the boilerplate work of the UserDetailsService & UserDetailsManager implementation, defining abstract methods for subclasses to implement for the user's specific entities that represent users & groups.

      Contributing since I considered it helpful, and I figured others might like to have it. It does introduce a dependency on JPA, so should probably go into some kind of separate contrib module outside of core.

      Hope you likey.

      1. JpaUserDetailsManager.java
        9 kB
        Matthew T. Adams
      2. JpaUserDetailsService.java
        3 kB
        Matthew T. Adams

        Activity

        Hide
        Matthew T. Adams added a comment -

        Just noticed JpaUserDetailsManager.java should probably be in the package org.springframework.security.provisioning to align with JdbcUserDetailsManager.

        Show
        Matthew T. Adams added a comment - Just noticed JpaUserDetailsManager.java should probably be in the package org.springframework.security.provisioning to align with JdbcUserDetailsManager.

          People

          • Assignee:
            Unassigned
            Reporter:
            Matthew T. Adams
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: