From 114fa3296c1965a506e2658c02c7546208f6f7e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EA=B8=B0=EC=84=9C?= <81108344+rlarltj@users.noreply.github.com> Date: Tue, 2 Jul 2024 01:20:18 +0900 Subject: [PATCH] release: deploy to prod (#11) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: token revoke url을 변경한다. * feat: springboot volume 설정 추가 --- .docker/docker-compose.yml | 3 +++ .../global/security/oauth/handler/AppleService.java | 7 +++++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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 5288a9e..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 @@ -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,10 @@ private PrivateKey getPrivateKey() { byte[] privateKeyBytes = Base64.getDecoder().decode(privateKey); PrivateKeyInfo privateKeyInfo = PrivateKeyInfo.getInstance(privateKeyBytes); - return converter.getPrivateKey(privateKeyInfo); + + PrivateKey key = converter.getPrivateKey(privateKeyInfo); + + return key; } catch (Exception e) { throw new RuntimeException("Error converting private key from String", e); }