From 804f7b552a58a680d14af7e5473f52257291e07b Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 23 Nov 2018 10:45:17 +0300 Subject: Fix successful Google response --- src/main/java/com/juick/server/api/ApiSocialLogin.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main') 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 { -- cgit v1.2.3