From 74cab5e7f3ea7ac37927bc792af012e595203e1d Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 23 Dec 2019 12:55:17 +0300 Subject: Fix redirect url for Apple API login --- src/main/java/com/juick/server/api/ApiSocialLogin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main/java/com/juick/server/api/ApiSocialLogin.java b/src/main/java/com/juick/server/api/ApiSocialLogin.java index 6253bc1b..c24d1618 100644 --- a/src/main/java/com/juick/server/api/ApiSocialLogin.java +++ b/src/main/java/com/juick/server/api/ApiSocialLogin.java @@ -145,7 +145,7 @@ public class ApiSocialLogin { .build(VkontakteApi.instance()); ServiceBuilder appleSignInBuilder = new ServiceBuilder(appleApplicationId); UriComponentsBuilder redirectBuilder = UriComponentsBuilder.fromUriString(baseUri); - String appleSignInRedirectUri = redirectBuilder.replacePath("/_apple").build().toUriString(); + String appleSignInRedirectUri = redirectBuilder.replacePath("/api/_applelogin").build().toUriString(); appleSignInService = appleSignInBuilder .callback(appleSignInRedirectUri) .defaultScope("email") -- cgit v1.2.3