From 9e673c53b96eabd8f879bdaed08c008dcaef2714 Mon Sep 17 00:00:00 2001 From: rlarltj123 Date: Tue, 2 Jul 2024 01:18:07 +0900 Subject: [PATCH 1/2] =?UTF-8?q?chore:=20token=20revoke=20url=EC=9D=84=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD=ED=95=9C=EB=8B=A4.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../global/security/oauth/handler/AppleService.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/moneymong/global/security/oauth/handler/AppleService.java b/src/main/java/com/moneymong/global/security/oauth/handler/AppleService.java index 5288a9e..152b619 100644 --- a/src/main/java/com/moneymong/global/security/oauth/handler/AppleService.java +++ b/src/main/java/com/moneymong/global/security/oauth/handler/AppleService.java @@ -122,7 +122,7 @@ public void unlink(Long userId) { params.add("token_type_hint", "refresh_token"); URI uri = UriComponentsBuilder - .fromUriString(host + "/auth/oauth2/v2/revoke") + .fromUriString(host + "/auth/revoke") .build() .toUri(); @@ -165,7 +165,11 @@ private PrivateKey getPrivateKey() { byte[] privateKeyBytes = Base64.getDecoder().decode(privateKey); PrivateKeyInfo privateKeyInfo = PrivateKeyInfo.getInstance(privateKeyBytes); - return converter.getPrivateKey(privateKeyInfo); + + PrivateKey key = converter.getPrivateKey(privateKeyInfo); + + log.info("key = {}", key); + return key; } catch (Exception e) { throw new RuntimeException("Error converting private key from String", e); } From 3c8bf14f58f52ca3dc60661aa0133c53e86a9f4d Mon Sep 17 00:00:00 2001 From: rlarltj123 Date: Tue, 2 Jul 2024 01:18:37 +0900 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20springboot=20volume=20=EC=84=A4?= =?UTF-8?q?=EC=A0=95=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .docker/docker-compose.yml | 3 +++ .../moneymong/global/security/oauth/handler/AppleService.java | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.docker/docker-compose.yml b/.docker/docker-compose.yml index 29efbcf..457a03d 100644 --- a/.docker/docker-compose.yml +++ b/.docker/docker-compose.yml @@ -33,6 +33,9 @@ services: APPLE_CLIENT_ID: ${APPLE_CLIENT_ID} KAKAO_ADMIN_KEY: ${KAKAO_ADMIN_KEY} INVITATION_CODE_KEY: ${INVITATION_CODE_KEY} + volumes: + - ./logfile:/logs + redis: container_name: moneymong-redis image: redis diff --git a/src/main/java/com/moneymong/global/security/oauth/handler/AppleService.java b/src/main/java/com/moneymong/global/security/oauth/handler/AppleService.java index 152b619..6e79487 100644 --- a/src/main/java/com/moneymong/global/security/oauth/handler/AppleService.java +++ b/src/main/java/com/moneymong/global/security/oauth/handler/AppleService.java @@ -168,7 +168,6 @@ private PrivateKey getPrivateKey() { PrivateKey key = converter.getPrivateKey(privateKeyInfo); - log.info("key = {}", key); return key; } catch (Exception e) { throw new RuntimeException("Error converting private key from String", e);