Skip to content

Commit

Permalink
fix (#3) : oauth 인증 중 client application 으로 redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
daehwan2yo committed Apr 11, 2022
1 parent 10e3f79 commit d739cbd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
4 changes: 2 additions & 2 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ server:
timeout: 15m
cookie:
http-only: true
secure: true
domain: localhost # 변경 해야함
# secure: true
# domain: localhost # 변경 해야함
same-site: lax

0 comments on commit d739cbd

Please sign in to comment.