Skip to content

Commit

Permalink
fix; auth filter 임시 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
yaeoni committed Aug 2, 2024
1 parent 180a5ec commit 60e4d73
Showing 1 changed file with 14 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,18 @@ class WebSecurityConfiguration {
@Bean
fun jwtTokenService() = JwtTokenService("dojo-secret-dojo-secret-dojo-secret")

@Bean
fun tokenBasedAuthenticationFilter(
memberService: MemberService,
jwtTokenService: JwtTokenService,
): FilterRegistrationBean<MemberAuthTokenAuthenticationFilter> {
val authenticationProvider = MemberAuthTokenAuthenticationProvider(jwtTokenService, memberService)

val filter = MemberAuthTokenAuthenticationFilter(authenticationProvider)

return FilterRegistrationBean(filter).apply {}
}
/**
* 임시 제거
*/
// @Bean
// fun tokenBasedAuthenticationFilter(
// memberService: MemberService,
// jwtTokenService: JwtTokenService,
// ): FilterRegistrationBean<MemberAuthTokenAuthenticationFilter> {
// val authenticationProvider = MemberAuthTokenAuthenticationProvider(jwtTokenService, memberService)
//
// val filter = MemberAuthTokenAuthenticationFilter(authenticationProvider)
//
// return FilterRegistrationBean(filter).apply {}
// }
}

0 comments on commit 60e4d73

Please sign in to comment.