From 3a51f0e6995ce9f09847881e769d30b1c6ebfd4e Mon Sep 17 00:00:00 2001 From: plum-king Date: Fri, 15 Nov 2024 05:51:32 +0900 Subject: [PATCH] =?UTF-8?q?#60=20Fix=20accessToken=20:=20accessToken=20?= =?UTF-8?q?=EC=9D=B8=EC=BD=94=EB=94=A9=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/finut/finut_server/controller/HomeController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/finut/finut_server/controller/HomeController.java b/src/main/java/com/finut/finut_server/controller/HomeController.java index 7f6680a..40664c5 100644 --- a/src/main/java/com/finut/finut_server/controller/HomeController.java +++ b/src/main/java/com/finut/finut_server/controller/HomeController.java @@ -72,8 +72,8 @@ public ResponseEntity getTokens(@AuthenticationPrincipal OidcUser oidcUser, HttpHeaders headers = new HttpHeaders(); // accessToken을 Base64로 인코딩 - String encodedAccessToken = Base64.getEncoder().encodeToString(accessToken.getBytes()); - headers.setLocation(URI.create(redirectUri + "?email=" + user.getEmail() + "&accessToken=" + encodedAccessToken)); +// String encodedAccessToken = Base64.getEncoder().encodeToString(accessToken.getBytes()); + headers.setLocation(URI.create(redirectUri + "?email=" + user.getEmail() + "&accessToken=" + accessToken)); return new ResponseEntity<>(headers, HttpStatus.FOUND); // 302 Redirect } // @Operation(summary = "로그인 성공", description = "로그인 성공시 해당 api에 리다이렉션 되어 수행됩니다")