728x90
UserDetailsService provide user infromation from databse like id, pw
pw is encrypted by PasswordEncoder
AuthenticationPrvoider use UserDetailService and PasswordEncoder to authenticate
Authentication details are stored in SecurityContext
default Filter
notice , just like diagram , Inside a Filter AuthenticationManager authenticate and then set the result to SecurityContextHolder
we only gave UserDetailService then Spring complains that we didn't give proper PasswordEncoder
always need to give both of them
728x90
'WEB > Security' 카테고리의 다른 글
Lesson 3 - UserDetailsManager and PasswordEncoder (0) | 2022.05.05 |
---|---|
Lesson 2 - Implementing the UserDetailsService (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 |
[java brains] OAuth2 , Google (0) | 2021.04.26 |