Skip to content

Commit

Permalink
Fix: #26 log 확인
Browse files Browse the repository at this point in the history
  • Loading branch information
BYEONGRYEOL committed Jul 13, 2024
1 parent d04e79a commit 09d2860
Showing 1 changed file with 11 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
@Component
public class AppleClaimsValidator {

private static final String NONCE_KEY = "nonce";
private static final String NONCE_KEY = "c_hash";
private final String iss = "https://appleid.apple.com";
private final String clientId;
private final String nonce;
Expand All @@ -32,12 +32,16 @@ public AppleClaimsValidator(

public boolean isValid(Claims claims) {
log.info(claims.toString());
log.info(claims.getAudience() == null ? "claims.getAudience() is null " : "getAudience 무넺없음");
log.info(claims.getIssuer() == null ? "claims.getIssuer() is null " : "getIssuer 무넺없음");
log.info("iss : " + iss);
// if(claims.getIssuer().contains(iss)){
// log.info("iss 가 같지않음");
// }
log.info("애플에서 받은 iss : " + claims.getIssuer());
log.info("genti iss : " + iss);
log.info("애플에서 받은 clientid : " + claims.getAudience());
log.info("genti clientid : " + clientId);
log.info("애플에서 받은 암호화된 nonce : " + claims.get(NONCE_KEY));
log.info("genti 암호화 nonce : " + this.nonce);

if(claims.getIssuer().contains(iss)){
log.info("iss 가 같지않음");
}
if(claims.getAudience().equals(clientId)){
log.info("clientid 가 같지않음");
}
Expand Down

0 comments on commit 09d2860

Please sign in to comment.