diff --git a/src/main/java/com/helpmeCookies/global/security/WebSecurityConfig.java b/src/main/java/com/helpmeCookies/global/security/WebSecurityConfig.java index 324eb79..71b28ba 100644 --- a/src/main/java/com/helpmeCookies/global/security/WebSecurityConfig.java +++ b/src/main/java/com/helpmeCookies/global/security/WebSecurityConfig.java @@ -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(); } @@ -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