From 63c62a603b8d901059dbb402c2ca13ced68f3fb5 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 23 Nov 2018 10:19:24 +0300 Subject: Log incoming google tokens --- src/main/java/com/juick/server/api/ApiSocialLogin.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/java/com/juick/server') diff --git a/src/main/java/com/juick/server/api/ApiSocialLogin.java b/src/main/java/com/juick/server/api/ApiSocialLogin.java index e46dd5c4..54a5d1bb 100644 --- a/src/main/java/com/juick/server/api/ApiSocialLogin.java +++ b/src/main/java/com/juick/server/api/ApiSocialLogin.java @@ -292,7 +292,8 @@ public class ApiSocialLogin { @PostMapping("/api/_google") public IdToken.Payload googleSignIn(@RequestParam(name = "idToken") String idTokenString) throws GeneralSecurityException, IOException { - + logger.info("Token: {}", idTokenString); + logger.info("Clients: {}", googleClientIds); GoogleIdToken idToken = verifier.verify(idTokenString); if (idToken != null) { return idToken.getPayload(); -- cgit v1.2.3