스터디-Spring

[스프링 시큐리티] SecurityContextPersistenceFilter

일태우 2022. 1. 30. 16:22
반응형

SecurityContextRepository를 사용하여 Repository 전략에 맞게 SecurityContext를 읽어오거나 초기화

  • 기본 전략은 HttpSessionSecurityContextRepository - HttpSession을 사용한다

 

This filter MUST be executed BEFORE any authentication processing mechanisms. Authentication processing mechanisms (e.g. BASIC, CAS processing filters etc) expect the SecurityContextHolder to contain a valid SecurityContext by the time they execute.

기본적으로 인증 프로세스 전에 실행되어야함 (기본으로 2번째 필터로 설정되어 있음)

반응형