diff options
author | Vitaly Takmazov | 2018-11-23 01:47:05 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-11-23 01:47:05 +0300 |
commit | 77f8d953704eb87b4d6706f30262d1fc178514b1 (patch) | |
tree | d7c0ae842e132b02acb4653649a299365f9b7e24 /src/main/java | |
parent | ebe4795d018934dea9e39e8f91af63071505b110 (diff) |
Use POST for Google Sign in
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/com/juick/server/api/ApiSocialLogin.java | 3 |
1 files changed, 2 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 4a8297cd..ff658c09 100644 --- a/src/main/java/com/juick/server/api/ApiSocialLogin.java +++ b/src/main/java/com/juick/server/api/ApiSocialLogin.java @@ -46,6 +46,7 @@ import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Value; 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.util.UriComponentsBuilder; @@ -287,7 +288,7 @@ public class ApiSocialLogin { return "redirect:/signup?type=vk&hash=" + loginhash; } } - @GetMapping("/api/_google") + @PostMapping("/api/_google") public IdToken.Payload googleSignIn(@RequestParam(name = "idToken") String idTokenString) throws GeneralSecurityException, IOException { |