diff --git a/src/main/java/com/codingwasabi/howtodo/security/oauth2/handler/OAuth2AuthenticationFailureHandler.java b/src/main/java/com/codingwasabi/howtodo/security/oauth2/handler/OAuth2AuthenticationFailureHandler.java index 50c7fef..f2a888b 100644 --- a/src/main/java/com/codingwasabi/howtodo/security/oauth2/handler/OAuth2AuthenticationFailureHandler.java +++ b/src/main/java/com/codingwasabi/howtodo/security/oauth2/handler/OAuth2AuthenticationFailureHandler.java @@ -16,6 +16,8 @@ public class OAuth2AuthenticationFailureHandler implements AuthenticationFailure public void onAuthenticationFailure(HttpServletRequest request, HttpServletResponse response, AuthenticationException exception) throws IOException, ServletException { - response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR); + response.sendRedirect("/oauth/authorize/kakao"); + //response.getWriter().write("Hi"); + //response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR); } } diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 8c28b24..f016c76 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -17,6 +17,6 @@ server: timeout: 15m cookie: http-only: true - secure: true - domain: localhost # 변경 해야함 + # secure: true + # domain: localhost # 변경 해야함 same-site: lax \ No newline at end of file