From d3423fb931722bf0c8a5c915ff3ed246507ffc71 Mon Sep 17 00:00:00 2001 From: wjdtkdgns Date: Mon, 14 Aug 2023 20:50:48 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20client=20secret=20=EC=83=9D=EC=84=B1=20?= =?UTF-8?q?=EA=B0=9C=EB=B0=9C=EC=9A=A9=20=EC=84=9C=EB=B9=84=EC=8A=A4?= =?UTF-8?q?=EC=9A=A9=20=EB=B6=84=EB=A6=AC=20#97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/auth/service/helper/AppleOauthHelper.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Api/src/main/java/allchive/server/api/auth/service/helper/AppleOauthHelper.java b/Api/src/main/java/allchive/server/api/auth/service/helper/AppleOauthHelper.java index 225abe5a..2d0ca198 100644 --- a/Api/src/main/java/allchive/server/api/auth/service/helper/AppleOauthHelper.java +++ b/Api/src/main/java/allchive/server/api/auth/service/helper/AppleOauthHelper.java @@ -54,7 +54,7 @@ public AppleTokenResponse getAppleOAuthTokenDev(String code) { appleOAuthProperties.getWebClientId(), appleOAuthProperties.getRedirectUrl(), code, - this.getClientSecret()); + this.getClientSecretDev()); } /** idtoken 분석 * */ @@ -111,4 +111,13 @@ private String getClientSecret() { appleOAuthProperties.getAuthKey(), appleOAuthProperties.getBaseUrl()); } + + private String getClientSecretDev() { + return AppleLoginUtil.createClientSecret( + appleOAuthProperties.getTeamId(), + appleOAuthProperties.getWebClientId(), + appleOAuthProperties.getKeyId(), + appleOAuthProperties.getAuthKey(), + appleOAuthProperties.getBaseUrl()); + } }