
SecurityContextPersistenceFilter
- SecurityContextPersistenceFilter는 요청 시작 시 SecurityContext를 로드하고, 요청 종료 시 SecurityContext를 저장하는 필터입니다.
LogoutFilter
- Logout과 관련된 요청을 수행하는 필터이다.
UsernamePasswordAuthenticationFilter
- 사용자가 제공한 아이디와 비밀번호를 기반으로 인증을 처리하며, 성공 시 SecurityContextHolder에 인증 객체를 저장합니다.
- httpSecurity 설정
- .formLogin() 을 통해 들어온 Parameter로 인증로직 수행
- SuccessHandler(implements AuthenticationSuccessHandler), FailureHandler(implements AuthenticationFailureHandler) 를 통해 성공 여부에 따른 로직 수행
DefaultLoginPageGeneratingFilter
- Login과 관련된 페이지가 없는 경우 기본적인 로그인 페이지(”/login”)를 제공해주는 필터
- 사용자 정의 로그인 페이지가 없을 경우 기본 로그인 페이지를 생성합니다. .formLogin() 설정이 필요합니다.
BasicAuthenticationFilter
- 사용자의 인증 정보를 Base64 Encoding 만 수행하여 이를 기반으로 인증을 수행하는 필터
- 간단한 보안 방식이기에 잘 사용하지 않는다.
RememberMeAuthenticationFilter
- 브라우저를 닫거나 세션이 만료되더라도, 쿠키를 이용해 자동으로 인증되도록 돕는 필터
- RememberMeServices와 협력하여 쿠키 기반 인증을 처리하며, 사용자가 "Remember Me"를 활성화한 경우 브라우저를 닫거나 세션이 만료되어도 자동 인증을 처리합니다.
SecurityContextHolderAwareRequestFilter