개발용 세션 쿠키 내리기
차후 삭제*
This commit is contained in:
parent
0d6594b439
commit
712ae8e9c2
@ -73,8 +73,17 @@ public class MemberAuthSuccessHandler implements AuthenticationSuccessHandler {
|
|||||||
|
|
||||||
response.setStatus(HttpStatus.OK.value());
|
response.setStatus(HttpStatus.OK.value());
|
||||||
response.setContentType(MediaType.APPLICATION_JSON_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);
|
clearAuthenticationAttributes(request);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -78,7 +78,7 @@ server:
|
|||||||
cookie:
|
cookie:
|
||||||
path: /
|
path: /
|
||||||
# 쿠키 보안 설정
|
# 쿠키 보안 설정
|
||||||
http-only: true
|
http-only: false
|
||||||
secure: true
|
secure: true
|
||||||
same-site: NONE
|
same-site: NONE
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user