WEB/Security

Lesson 2 - Implementing the UserDetailsService

Tony Lim 2022. 5. 5. 15:14
728x90

UserDetailsManager implement UserDetailsService 

it allows us to change password ,  update user and so on capable of doing other thing rather than just looking for User

 

getting user from database , User is a Entity which i made we need to return UserDetails so we wrap it with SecurityUser

it is better to create new class like SecretUser
and not let User entity implement UserDetails because of Sinlgle Responsibility principle

 

 

 

728x90