ExceptionTranslationFilter

이승민·2022년 10월 16일


필터 체인에서 발생하는 AccessDeniedException과 AuthenticationExcetpion을 처리하는 필터

AuthenticatioException 발생 시

  • AuthenticationEntryPoint 실행
  • AbstractSecurityInterceptor 하위 클래스 (예: FilterSecuritryInterceptor)에서 발생하는 예외만 처리

AccessDeniedException 발생 시

  • 익명 사용자라면 AuthenticationEntryPoint 실행
  • 익명 사용자가 아니면 AccessDeniedHandler에게 위임
profile
💻 끊임없이 성장하는 백엔드 개발자 💻

0개의 댓글