Skip to content

Commit

Permalink
Merge pull request #113 from yooonwodyd/weekly
Browse files Browse the repository at this point in the history
refactor:[#84]- refact failure
  • Loading branch information
yooonwodyd authored Nov 14, 2024
2 parents caceb43 + f8b6f99 commit e027494
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ public SecurityFilterChain oauth2SecurityFilterChain(HttpSecurity http) throws E
.successHandler((request, response, authentication) -> {
response.sendRedirect("/oauth2/login/kakao");
})
.failureHandler((request, response, exception) -> {
System.out.println(exception.getMessage());
})
);
return http.build();
}
Expand All @@ -74,8 +77,7 @@ public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
"/v1/products/**",
"/v1/reviews/**",
"/ws/**",
"/v1/artists/**",
"/v1/users/**"
"/v1/artists/**"
).permitAll()
.anyRequest().authenticated()
).exceptionHandling((exception) -> exception
Expand Down

0 comments on commit e027494

Please sign in to comment.