From 67becaa433eb5434b0915207f28c9c1389faa5d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=86=90=ED=99=8D=EC=84=9D?= <78216059+bayy1216@users.noreply.github.com> Date: Fri, 31 May 2024 09:53:20 +0900 Subject: [PATCH] =?UTF-8?q?[Feat]:=20=EB=84=A4=EC=9D=B4=EB=B2=84=20?= =?UTF-8?q?=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=EC=84=A4=EC=A0=95=20=EB=88=84?= =?UTF-8?q?=EB=9D=BD=20=EC=B6=94=EA=B0=80=20(#4)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../zzansuni/infrastructure/auth/NaverOAuth2Client.java | 3 --- zzansuni-api-server/app/src/main/resources/application.yml | 4 +++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/zzansuni-api-server/app/src/main/java/org/haedal/zzansuni/infrastructure/auth/NaverOAuth2Client.java b/zzansuni-api-server/app/src/main/java/org/haedal/zzansuni/infrastructure/auth/NaverOAuth2Client.java index 4200df8..28d14a6 100644 --- a/zzansuni-api-server/app/src/main/java/org/haedal/zzansuni/infrastructure/auth/NaverOAuth2Client.java +++ b/zzansuni-api-server/app/src/main/java/org/haedal/zzansuni/infrastructure/auth/NaverOAuth2Client.java @@ -36,8 +36,6 @@ public NaverOAuth2Client(AuthTokenGenerator authTokenGenerator, ClientHttpReques private static final String GRANT_TYPE = "authorization_code"; @Value("${naver.client-id}") private String clientId; - @Value("${naver.redirect-uri}") - private String redirectUri; @Value("${naver.client-secret}") private String clientSecret; @@ -52,7 +50,6 @@ public OAuthUserInfoModel getAuthToken(String code, String state) { MultiValueMap body = new LinkedMultiValueMap<>(); body.add("grant_type", GRANT_TYPE); body.add("client_id", clientId); - body.add("redirect_uri", redirectUri); body.add("code", code); body.add("client_secret", clientSecret); body.add("state", state); diff --git a/zzansuni-api-server/app/src/main/resources/application.yml b/zzansuni-api-server/app/src/main/resources/application.yml index 3798117..88d6fc7 100644 --- a/zzansuni-api-server/app/src/main/resources/application.yml +++ b/zzansuni-api-server/app/src/main/resources/application.yml @@ -57,7 +57,9 @@ kakao: client-id: ${KAKAO_CLIENT_ID} client-secret: ${KAKAO_CLIENT_SECRET} redirect-uri: ${KAKAO_REDIRECT_URI} - +naver: + client-id: ${NAVER_CLIENT_ID} + client-secret: ${NAVER_CLIENT_SECRET} --- spring: # dev profile config: