Skip to content

Commit

Permalink
fix(#5) : import 수정 + 환경변수 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
aeeazip committed Jul 2, 2023
1 parent 7e4e22b commit 05ee479
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
package trothly.trothcam.feign;

import io.jsonwebtoken.Claims;
import lombok.Value;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class AppleClaimsValidator {
private final String iss;
private final String clientId;

// iss = apple 개발자 계정 team id (발급자)
// client-id = app bundle id
public AppleClaimsValidator(
@Value("${oauth.apple.iss}") String iss,
@Value("${oauth.apple.client-id}") String clientId
Expand Down
7 changes: 6 additions & 1 deletion src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,9 @@ spring:
activate:
on-profile: local
# import:
# application-secret.yml
# application-secret.yml

oauth:
apple:
iss: ${APPLE_ISSUE}
client-id: ${APPLE_BUNDLE_ID}

0 comments on commit 05ee479

Please sign in to comment.