aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/server/api/ApiSocialLogin.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-11-23 10:45:17 +0300
committerGravatar Vitaly Takmazov2018-11-23 10:45:17 +0300
commit804f7b552a58a680d14af7e5473f52257291e07b (patch)
tree419dc3facf376a1aba8b121a34a748b22a261ef3 /src/main/java/com/juick/server/api/ApiSocialLogin.java
parent84db638ba1fff04887b5d6f16a33621f760a0cc7 (diff)
Fix successful Google response
Diffstat (limited to 'src/main/java/com/juick/server/api/ApiSocialLogin.java')
-rw-r--r--src/main/java/com/juick/server/api/ApiSocialLogin.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/com/juick/server/api/ApiSocialLogin.java b/src/main/java/com/juick/server/api/ApiSocialLogin.java
index d6a103b4..9e111223 100644
--- a/src/main/java/com/juick/server/api/ApiSocialLogin.java
+++ b/src/main/java/com/juick/server/api/ApiSocialLogin.java
@@ -48,6 +48,7 @@ import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.util.UriComponentsBuilder;
import javax.annotation.PostConstruct;
@@ -290,6 +291,7 @@ public class ApiSocialLogin {
return "redirect:/signup?type=vk&hash=" + loginhash;
}
}
+ @ResponseBody
@PostMapping("/api/_google")
public IdToken.Payload googleSignIn(@RequestParam(name = "idToken") String idTokenString)
throws GeneralSecurityException, IOException {