Skip to content

Commit

Permalink
chore: SecurityConfig 설정 JwtAuthenticationEntryPoint 재적용 (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyeong-hyeok committed Aug 16, 2023
1 parent 64415b3 commit 0085580
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/project/mapdagu/config/SecurityConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ public SecurityFilterChain filterChain(HttpSecurity http, HandlerMappingIntrospe
.userInfoEndpoint(userInfoEndPoint -> userInfoEndPoint.userService(customOauth2UserService)))
.addFilterAfter(customJsonUsernamePasswordAuthenticationFilter(), LogoutFilter.class)
.addFilterBefore(jwtAuthenticationProcessingFilter(), CustomJsonAuthenticationFilter.class)
.exceptionHandling(exception -> exception.accessDeniedHandler(jwtAccessDeniedHandler));
.exceptionHandling(exception -> exception.accessDeniedHandler(jwtAccessDeniedHandler)
.authenticationEntryPoint(jwtAuthenticationEntryPoint));

return http.build();
}
Expand Down

0 comments on commit 0085580

Please sign in to comment.