diff --git a/src/main/java/io/company/localhost/common/security/handler/MemberAuthSuccessHandler.java b/src/main/java/io/company/localhost/common/security/handler/MemberAuthSuccessHandler.java index 45b3d53..d1d08d8 100644 --- a/src/main/java/io/company/localhost/common/security/handler/MemberAuthSuccessHandler.java +++ b/src/main/java/io/company/localhost/common/security/handler/MemberAuthSuccessHandler.java @@ -73,8 +73,17 @@ public class MemberAuthSuccessHandler implements AuthenticationSuccessHandler { response.setStatus(HttpStatus.OK.value()); response.setContentType(MediaType.APPLICATION_JSON_VALUE); + + /** + * TODO 차후삭제 + * + * 세션쿠키값을 스트링 형태로 클라이언트 전달 + */ + HttpSession session = request.getSession(false); + String respSessionCookie = session.getId(); + response.getWriter().write(mapper.writeValueAsString(ApiResponse.ok(respSessionCookie))); - response.getWriter().write(mapper.writeValueAsString(ApiResponse.ok("Success"))); + //response.getWriter().write(mapper.writeValueAsString(ApiResponse.ok("Success"))); clearAuthenticationAttributes(request); } diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 117559d..92e1fa3 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -78,7 +78,7 @@ server: cookie: path: / # 쿠키 보안 설정 - http-only: true + http-only: false secure: true same-site: NONE