From 60e4d73b53fcc88b7f875e0eda83ec5adb886701 Mon Sep 17 00:00:00 2001 From: Heidi Date: Sat, 3 Aug 2024 07:27:30 +0900 Subject: [PATCH] =?UTF-8?q?fix;=20auth=20filter=20=EC=9E=84=EC=8B=9C=20?= =?UTF-8?q?=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../security/WebSecurityConfiguration.kt | 25 +++++++++++-------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/api/src/main/kotlin/com/mashup/dojo/config/security/WebSecurityConfiguration.kt b/api/src/main/kotlin/com/mashup/dojo/config/security/WebSecurityConfiguration.kt index 61f40a5b..2f49674d 100644 --- a/api/src/main/kotlin/com/mashup/dojo/config/security/WebSecurityConfiguration.kt +++ b/api/src/main/kotlin/com/mashup/dojo/config/security/WebSecurityConfiguration.kt @@ -10,15 +10,18 @@ class WebSecurityConfiguration { @Bean fun jwtTokenService() = JwtTokenService("dojo-secret-dojo-secret-dojo-secret") - @Bean - fun tokenBasedAuthenticationFilter( - memberService: MemberService, - jwtTokenService: JwtTokenService, - ): FilterRegistrationBean { - val authenticationProvider = MemberAuthTokenAuthenticationProvider(jwtTokenService, memberService) - - val filter = MemberAuthTokenAuthenticationFilter(authenticationProvider) - - return FilterRegistrationBean(filter).apply {} - } + /** + * 임시 제거 + */ +// @Bean +// fun tokenBasedAuthenticationFilter( +// memberService: MemberService, +// jwtTokenService: JwtTokenService, +// ): FilterRegistrationBean { +// val authenticationProvider = MemberAuthTokenAuthenticationProvider(jwtTokenService, memberService) +// +// val filter = MemberAuthTokenAuthenticationFilter(authenticationProvider) +// +// return FilterRegistrationBean(filter).apply {} +// } }