Skip to content

Commit a876631

Browse files
committed
apple login client test
1 parent 21fdc9c commit a876631

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ processResources {
8484
APPLE_LOGIN_KEY: System.getenv("APPLE_LOGIN_KEY"),
8585
APPLE_CLIENT_ID: System.getenv("APPLE_CLIENT_ID"),
8686
APPLE_REDIRECT_URL: System.getenv("APPLE_REDIRECT_URL"),
87-
APPLE_KEY_PATH: "classpath:secrets/apple-key/p8"
87+
APPLE_KEY_PATH: "/secrets/apple-key.p8"
8888
])
8989
}
9090
}

src/main/java/site/sharetable/sharetable_api/apple/AppleService.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ public class AppleService {
3737

3838
private final static String APPLE_AUTH_URL = "https://appleid.apple.com";
3939

40-
public String testAppleId() {
41-
return APPLE_TEAM_ID;
40+
public String returnAppleKeyPath() {
41+
return APPLE_KEY_PATH;
4242
}
4343

4444
public String getAppleLogin() {

src/main/java/site/sharetable/sharetable_api/controller/AppleController.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class AppleController {
2323

2424
@GetMapping("/test")
2525
public ResponseEntity<ApiCommonResponse<String>> test() {
26-
String text = appleService.testAppleId();
26+
String text = appleService.returnAppleKeyPath();
2727

2828
ApiCommonResponse<String> response = new ApiCommonResponse<>(true, text);
2929
return ResponseEntity.ok(response);

0 commit comments

Comments
 (0)