diff options
author | Vitaly Takmazov | 2018-11-23 10:45:17 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-11-23 10:45:17 +0300 |
commit | 804f7b552a58a680d14af7e5473f52257291e07b (patch) | |
tree | 419dc3facf376a1aba8b121a34a748b22a261ef3 /src/main/java/com/juick/server/api | |
parent | 84db638ba1fff04887b5d6f16a33621f760a0cc7 (diff) |
Fix successful Google response
Diffstat (limited to 'src/main/java/com/juick/server/api')
-rw-r--r-- | src/main/java/com/juick/server/api/ApiSocialLogin.java | 2 |
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 { |