From 62a9d3981f89e68c5736a6e1494dac1ac94617b8 Mon Sep 17 00:00:00 2001 From: daeunkwak Date: Tue, 1 Aug 2023 01:38:33 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EA=B5=AC=EA=B8=80=EB=A1=9C=EA=B7=B8?= =?UTF-8?q?=EC=9D=B8=20auth=20code=20<->=20accessToken=20=EA=B5=90?= =?UTF-8?q?=ED=99=98=20=EB=A1=9C=EC=A7=81=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/app/gangdan/please/api/OauthLoginController.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/app/gangdan/please/api/OauthLoginController.java b/src/main/java/app/gangdan/please/api/OauthLoginController.java index cc02206..a9de474 100644 --- a/src/main/java/app/gangdan/please/api/OauthLoginController.java +++ b/src/main/java/app/gangdan/please/api/OauthLoginController.java @@ -31,15 +31,15 @@ public class OauthLoginController { public ResponseEntity loginOauth(HttpServletRequest httpServletRequest) { log.info("=== Oauth login start ==="); - final String accessToken = oauthLoginService.getAccessToken(httpServletRequest.getHeader(HttpHeaders.AUTHORIZATION)); // access token 발급 + //final String accessToken = oauthLoginService.getAccessToken(httpServletRequest.getHeader(HttpHeaders.AUTHORIZATION)); // access token 발급 - log.info("authorizationnnn :::::::::::::::: " + httpServletRequest.getHeader(HttpHeaders.AUTHORIZATION)); + //log.info("authorizationnnn :::::::::::::::: " + httpServletRequest.getHeader(HttpHeaders.AUTHORIZATION)); - oauthLoginService.validateLoginParams("GOOGLE", accessToken); + //oauthLoginService.validateLoginParams("GOOGLE", accessToken); final SocialType socialType = SocialType.GOOGLE; - final ResponseJwtTokenDto jwtTokenDto = oauthLoginService.login(socialType, accessToken); + final ResponseJwtTokenDto jwtTokenDto = oauthLoginService.login(socialType, httpServletRequest.getHeader(HttpHeaders.AUTHORIZATION)); log.info("=== Oauth login end ==="); return ResponseEntity.ok(jwtTokenDto);