diff --git a/src/main/java/sopt/org/umbbaServer/domain/user/social/apple/verify/AppleClaimsValidator.java b/src/main/java/sopt/org/umbbaServer/domain/user/social/apple/verify/AppleClaimsValidator.java index 852ec60b..e5eb7500 100644 --- a/src/main/java/sopt/org/umbbaServer/domain/user/social/apple/verify/AppleClaimsValidator.java +++ b/src/main/java/sopt/org/umbbaServer/domain/user/social/apple/verify/AppleClaimsValidator.java @@ -7,20 +7,18 @@ @Component public class AppleClaimsValidator { - private static final String NONCE_KEY = "nonce"; - private final String iss; private final String clientId; - private final String nonce; // iOS 멘토링에서 질문 후 사용 여부 결정 +// private final String nonce; // iOS 멘토링에서 질문 후 사용 여부 결정 public AppleClaimsValidator( @Value("${apple.iss}") String iss, - @Value("${apple.client-id}") String clientId, - @Value("${apple.nonce}") String nonce + @Value("${apple.client-id}") String clientId +// @Value("${apple.nonce}") String nonce ) { this.iss = iss; this.clientId = clientId; - this.nonce = EncryptUtils.encrypt(nonce); +// this.nonce = EncryptUtils.encrypt(nonce); } public boolean isValid(Claims claims) { diff --git a/src/main/resources/application.yaml b/src/main/resources/application.yaml index 0d2f117f..42f996bf 100644 --- a/src/main/resources/application.yaml +++ b/src/main/resources/application.yaml @@ -34,7 +34,7 @@ kakao: apple: iss: ${apple-iss} client-id: ${apple-id} - nonce: ${apple-nonce} +# nonce: ${apple-nonce} jwt: secret: ${jwt-secret}