Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[style]: 테스트용 로그만 추가 #63

Merged
merged 1 commit into from
Feb 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -33,6 +34,7 @@

@Service
@RequiredArgsConstructor
@Slf4j
public class AppleLoginService implements LoginService{
private final AppleAuthClient appleAuthClient;
private final SocialTokenValidator validator;
Expand Down Expand Up @@ -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) // 토큰 발행자 = 우리 팀
Expand Down Expand Up @@ -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();
Expand Down
Loading