Skip to content

Commit

Permalink
Merge pull request #69 from mash-up-kr/yaeoni/filter-remove
Browse files Browse the repository at this point in the history
fix; auth filter 임시 제거
  • Loading branch information
xonmin authored Aug 3, 2024
2 parents 180a5ec + 60e4d73 commit 0785663
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 0785663

Please sign in to comment.