From 78ee6cf0ec2ab93ad322dd2c6137b68f8e1de34b Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 25 Dec 2019 16:44:01 +0300 Subject: AppleClientSecretGenerator does not depend on Spring --- src/main/java/com/juick/server/configuration/SignInWithAppleConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/com/juick/server') diff --git a/src/main/java/com/juick/server/configuration/SignInWithAppleConfig.java b/src/main/java/com/juick/server/configuration/SignInWithAppleConfig.java index b55ba391..310c5899 100644 --- a/src/main/java/com/juick/server/configuration/SignInWithAppleConfig.java +++ b/src/main/java/com/juick/server/configuration/SignInWithAppleConfig.java @@ -40,6 +40,6 @@ public class SignInWithAppleConfig { @Bean public AppleClientSecretGenerator clientSecretGenerator() throws IOException, InvalidKeySpecException, NoSuchAlgorithmException { - return new AppleClientSecretGenerator(appId, teamId, keyId, keyPath.getInputStream()); + return new AppleClientSecretGenerator(appId, teamId, keyId, keyPath.getFile().toPath()); } } -- cgit v1.2.3