aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/server
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-12-23 12:55:17 +0300
committerGravatar Vitaly Takmazov2019-12-23 12:55:17 +0300
commit74cab5e7f3ea7ac37927bc792af012e595203e1d (patch)
tree39e44fc6adcfc2a0530f1375013dc774759277ba /src/main/java/com/juick/server
parent30af278d4fdd579662163eb5d9210d8b363b7b59 (diff)
Fix redirect url for Apple API login
Diffstat (limited to 'src/main/java/com/juick/server')
-rw-r--r--src/main/java/com/juick/server/api/ApiSocialLogin.java2
1 files changed, 1 insertions, 1 deletions
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")