티스토리 뷰

Spring Security - SecurityContextPersistenceFilter

SecurityContextPersistenceFilter

  • SpringSecurity FilterChain에서 2번째로 실행되는 Filter이다.
  • 기존에 인증된 정보가 있다면 다음 요청에서도 다시 인증을 하지않도록 SecurityContext를 공유하는 기능을 제공한다.
  • Spring Session 을 활용하여 세션 클러스터를 구현할 수 있다.

 

 

 

SecurityContextRepository

  • SecurityContextPersistenceFilter가 기존의 SecurityContext를 로드 및 초기화하는데 사용한다.
    • 기본 전략은 HttpSession 이다.

댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
more
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함