Spring Security Filter (2) 썸네일형 리스트형 [JWT🔒] Spring Security Filter 실제로 스프링 시큐리티는 훨씬 다양한 필터체인을 사용하여 다양한 커스터마이징을 할 수 있도록 돕습니다. SecurityContextPersistentFilter SecurityContextRepository에서 SecurityContext를 가져와서 SecurityContextHolder에 주입하거나 반대로 저장하는 역할을 합니다. LogoutFilter logout 요청을 감시하며, 요청시 인증 주체(Principal)를 로그아웃 시킵니다. UsernamePasswordAuthenticationFilter login 요청을 감시하며, 인증 과정을 진행합니다. DefaultLoginPageGenerationFilter 사용자가 별도의 로그인 페이지를 구현하지 않은 경우, 스프링에서 기본적으로 설정한 로그.. [스프링 시큐리티] - 필터 체인 스프링 시큐리티 필터 체인에 대해 알아보기 ▶ WebAsyncManagerIntegrationFilter 이 필터는 SecurityContext 와 비동기 요청 처리를 위한 핵심 클래스인 스프링 웹의 WebAsyncManager 간의 통합을 제공한다. ▶ SecurityContextPersistenceFilter 요청이 도달하는 다음 필터는 SecurityContextPersistenceFilter 이다. 이 필터는 스프링 시큐리티가 정상적으로 동작하기 위해 필터 체인에 꼭 존재해야 하는 필터 체인 중 하나이다. 요청이 들어올 때 이 필터가 SecurityContextPersistenceFilter에서 SecurityContext 를 로딩해서 설정한다. SecurityContext 가 로드되고 나면 Se.. 이전 1 다음