From 7c4ba5e89d9e0ef778c769933b3e5da0f5a6bea3 Mon Sep 17 00:00:00 2001 From: zini9188 Date: Tue, 21 Nov 2023 13:27:29 +0900 Subject: [PATCH] =?UTF-8?q?refactor=20:=20=ED=97=A4=EB=8D=94=EC=97=90=20?= =?UTF-8?q?=ED=86=A0=ED=81=B0=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/tgd/trip/jwt/OAuth2LoginSuccessHandler.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/tgd/trip/jwt/OAuth2LoginSuccessHandler.java b/src/main/java/com/tgd/trip/jwt/OAuth2LoginSuccessHandler.java index 1e112e9..41aa1f0 100644 --- a/src/main/java/com/tgd/trip/jwt/OAuth2LoginSuccessHandler.java +++ b/src/main/java/com/tgd/trip/jwt/OAuth2LoginSuccessHandler.java @@ -43,13 +43,14 @@ private void loginSuccess(HttpServletRequest request, HttpServletResponse respon cookie.setHttpOnly(false); cookie.setSecure(false); // HTTPS를 사용할 때만 쿠키가 전송되도록 설정 response.addCookie(cookie); // 쿠키를 응답에 추가 + response.setHeader("Authorization", accessToken); log.info("cookie : {}", cookie); log.info("oauth email : {} login success", oAuth2User.getUserId()); log.info("oauth role : {}", oAuth2User.getRoles()); log.info("accessToken 여기까진 온다 : {}", accessToken); - String redirectUrl = "http://localhost:5173/login"; + String redirectUrl = "http://localhost:5173/login"; log.info("Url : {}", redirectUrl);