Skip to content

Commit

Permalink
fix: 키 파일 절대 경로로 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-seong committed Feb 6, 2024
1 parent 8531c47 commit c15efd2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,7 @@ public String getAccessTokenByRfToken(String code) {
return null;
}
private PrivateKey getPrivateKey() throws IOException {
ClassPathResource resource = new ClassPathResource(keyPath);
String privateKey = new String(Files.readAllBytes(Paths.get(resource.getURI())));
String privateKey = new String(Files.readAllBytes(Paths.get(keyPath) ) );

Reader pemReader = new StringReader(privateKey);
PEMParser pemParser = new PEMParser(pemReader);
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ apple:
team-id: ${APPLE_TEAM_ID} # = ID prefix
key:
id: ${APPLE_KEY_ID}
path: classpath:/AuthKey_${APPLE_KEY_ID}.p8 # 나중에 src/main/resources/apple/에 키 파일 저장, 그냥 문자열로 가져와도 될 것 같기도
path: /var/app/current/src/main/resources/AuthKey_${APPLE_KEY_ID}.p8 # 나중에 src/main/resources/apple/에 키 파일 저장
kakao:
redirect-uri: ${KAKAO_REDIRECT_URI}
iss: https://kauth.kakao.com
Expand Down

0 comments on commit c15efd2

Please sign in to comment.