절대적 발전

  • 홈
  • 태그
  • 방명록

2022/01/21 1

[스프링 시큐리티] @Async & WebAsyncManagerIntegrationFilter

Async 웹 MVC를 지원하는 필터 스프링 MVC의 Async 기능(핸들러에서 Callable을 리턴할 수 있는 기능)을 사용할 때에도 SecurityContext를 공유하도록 도와주는 필터 해당 필터는 AsyncManager에 Interceptor를 등록하고 핵심 기능은 SecurityContextCallableProcessingInterceptor 에서 구현 PreProcess: SecurityContext를 설정 Callable: 다른 쓰레드이지만 그 안에서는 동일한 SecurityContext를 참조할 수 있음 PostProcess: SecurityContext를 clear @Async를 사용하는 서비스를 호출하는 경우, Thread가 다르기 때문에 SecurityContext를 공유받지 못한다..

스터디-Spring 2022.01.21
1
더보기
프로필사진

  • 분류 전체보기 (83)
    • 프로그래밍 (8)
    • IDE (3)
    • Java (13)
    • Spring (12)
    • Node.js (2)
    • Vue.js (1)
    • Flutter (5)
    • IT Tip (6)
    • Infrastructure (5)
    • 스터디-Spring (27)
    • 스터디-알고리즘 (1)

Tag

EffectiveJava, frontend, Flutter, 플러터, JPA, windows10, 스프링, DART, Spring, 튜토리얼, docker, android, 개발, thymeleaf, node, java, 안드로이드, querydsl, Security, 소프트웨어 아키텍쳐,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

Calendar

«   2022/01   »
일 월 화 수 목 금 토
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

방문자수Total

  • Today :
  • Yesterday :

티스토리툴바