Skip to content

Commit

Permalink
Merge pull request #40 from AWS-Cloud-School-6/38-fix-credential-경로-수정
Browse files Browse the repository at this point in the history
Fix: credential 경로 수정
  • Loading branch information
nareunhang authored Nov 22, 2024
2 parents c06353b + 898069c commit bb06e25
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ private GoogleCredentials getCredentials(String userId) throws IOException {
String fileName = s3Service.downloadJsonFile(userId);
// JSON 키 파일 경로 설정
String credentialsPath = "tmp/"+fileName;
// 디버깅 코드로 경로 출력
System.out.println("Credential file path: " + credentialsPath);
return GoogleCredentials.fromStream(new FileInputStream(credentialsPath))
.createScoped("https://www.googleapis.com/auth/cloud-platform");
}
Expand Down

0 comments on commit bb06e25

Please sign in to comment.