Authentication 생성SecurityContextHolder(ThreadLocal)에 현재 사용자 Authentication 보관(STATELESS에선 매 요청 토큰으로 재구성)
SecurityContext 준비/복원, 응답 시 정리.
/logout 처리. 커스텀 LogoutHandler 달아 Refresh 토큰 무효화/블랙리스트 반영STATELESS면 보통 disable() 또는 Cookie 기반 JWT면 CSRF 대응 필요AuthenticationManagerAuthorization: Basic ... 처리(대개 비활성)STATELESS 권장커스텀 JWT 필터는 보통 UsernamePasswordAuthenticationFilter 앞(혹은 BasicAuthenticationFilter 앞)에 배치해서
“토큰이 있으면 인증 완료로 간주 → 아래 폼/Basic 인증 필터 스킵” 전략을 씀