From fe7f578c190e3b45ddf4c535b11f385dcb940ef7 Mon Sep 17 00:00:00 2001 From: wuseong Date: Wed, 7 Feb 2024 15:32:04 +0900 Subject: [PATCH] =?UTF-8?q?style:=20=ED=85=8C=EC=8A=A4=ED=8A=B8=EC=9A=A9?= =?UTF-8?q?=20=EB=A1=9C=EA=B7=B8=EB=A7=8C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/onnoff/onnoff/auth/service/AppleLoginService.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/onnoff/onnoff/auth/service/AppleLoginService.java b/src/main/java/com/onnoff/onnoff/auth/service/AppleLoginService.java index a1b6a20..02a4bd5 100644 --- a/src/main/java/com/onnoff/onnoff/auth/service/AppleLoginService.java +++ b/src/main/java/com/onnoff/onnoff/auth/service/AppleLoginService.java @@ -11,6 +11,7 @@ import io.jsonwebtoken.Jwts; import io.jsonwebtoken.SignatureAlgorithm; import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; import org.bouncycastle.asn1.pkcs.PrivateKeyInfo; import org.bouncycastle.openssl.PEMParser; import org.bouncycastle.openssl.jcajce.JcaPEMKeyConverter; @@ -33,6 +34,7 @@ @Service @RequiredArgsConstructor +@Slf4j public class AppleLoginService implements LoginService{ private final AppleAuthClient appleAuthClient; private final SocialTokenValidator validator; @@ -66,6 +68,8 @@ private String createClientSecret() { jwtHeader.put("alg", "ES256"); try { + log.info("teamId = {}", teamId); + log.info("kid = {}", kid); return Jwts.builder() .setHeaderParams(jwtHeader) .setIssuer(teamId) // 토큰 발행자 = 우리 팀 @@ -97,7 +101,7 @@ public String getAccessTokenByRfToken(String code) { } private PrivateKey getPrivateKey() throws IOException { String privateKey = new String(Files.readAllBytes(Paths.get(keyPath) ) ); - + log.info("privateKey = {}", privateKey); Reader pemReader = new StringReader(privateKey); PEMParser pemParser = new PEMParser(pemReader); JcaPEMKeyConverter converter = new JcaPEMKeyConverter();