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
'WEB > Security' 카테고리의 다른 글
Lesson 4 - The AuthenticationProvider (0) | 2022.05.05 |
---|---|
Lesson 3 - UserDetailsManager and PasswordEncoder (0) | 2022.05.05 |
Lesson 1 - The basic contracts in Spring Security architecture (0) | 2022.05.05 |
Transport Layer Security, TLS 1.2 and 1.3 (0) | 2022.02.06 |
OAuth 2.0 and OpenID Connect (OAtuh 2.0 in depth) (0) | 2021.12.19 |