Skip to content

Commit 0bc4771

Browse files
committed
fix: security filter 설정
1 parent 67f9ca0 commit 0bc4771

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/main/java/org/myteam/server/global/security/config/SecurityConfig.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,11 +233,15 @@ public SecurityFilterChain securityFilterChain(HttpSecurity http) throws Excepti
233233
);
234234

235235
// JWT 인증 및 토큰 검증 필터 추가
236-
http.addFilterBefore(
237-
new JwtAuthenticationFilter(authenticationManager(), jwtProvider, eventPublisher, redisService),
238-
UsernamePasswordAuthenticationFilter.class
236+
http
237+
.addFilterBefore(
238+
new JwtAuthenticationFilter(authenticationManager(), jwtProvider, eventPublisher, redisService),
239+
UsernamePasswordAuthenticationFilter.class
239240
)
240-
.addFilterAfter(new TokenAuthenticationFilter(jwtProvider, memberJpaRepository), JwtAuthenticationFilter.class);
241+
.addFilterBefore(
242+
new TokenAuthenticationFilter(jwtProvider, memberJpaRepository),
243+
JwtAuthenticationFilter.class);
244+
241245
// .addFilter(webConfig.corsFilter()); // CORS 필터 추가
242246

243247
// // cors 설정

0 commit comments

Comments
 (0)