Skip to content

Commit

Permalink
[FIX] Apple 로그인 nonce 반영 안하는 것으로 수정 #55
Browse files Browse the repository at this point in the history
  • Loading branch information
ddongseop committed Jul 18, 2023
1 parent b0ce443 commit d4bd7b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ kakao:
apple:
iss: ${apple-iss}
client-id: ${apple-id}
nonce: ${apple-nonce}
# nonce: ${apple-nonce}

jwt:
secret: ${jwt-secret}
Expand Down

0 comments on commit d4bd7b8

Please sign in to comment.