aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/server
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-11-23 10:19:24 +0300
committerGravatar Vitaly Takmazov2018-11-23 10:19:24 +0300
commit63c62a603b8d901059dbb402c2ca13ced68f3fb5 (patch)
tree90af9f8e7843dd4716a081194e6a37c6287bd2f6 /src/main/java/com/juick/server
parent54fe7608bb9b6547b25d8a3b23a5eada825037f1 (diff)
Log incoming google tokens
Diffstat (limited to 'src/main/java/com/juick/server')
-rw-r--r--src/main/java/com/juick/server/api/ApiSocialLogin.java3
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 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();