aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-04-19 20:43:21 +0300
committerGravatar Vitaly Takmazov2022-05-12 11:08:36 +0300
commit9af778fc2d1ffac142628da4f9e2fd027dbfec7c (patch)
tree3b9b284f69de457c2c04a85f73a6161151b17263 /src/main/java/com/juick
parentbd266a36308e66b2b47cfcab06cd4a596507f113 (diff)
Google sign in: validate client id
Diffstat (limited to 'src/main/java/com/juick')
-rw-r--r--src/main/java/com/juick/www/api/ApiSocialLogin.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/juick/www/api/ApiSocialLogin.java b/src/main/java/com/juick/www/api/ApiSocialLogin.java
index 5e17d2b7..02f16676 100644
--- a/src/main/java/com/juick/www/api/ApiSocialLogin.java
+++ b/src/main/java/com/juick/www/api/ApiSocialLogin.java
@@ -230,7 +230,7 @@ public class ApiSocialLogin {
throws GeneralSecurityException, IOException {
logger.info("Token: {}", idTokenString);
logger.info("Client: {}", googleClientId);
- Optional<String> verifiedEmail = GoogleTokenVerifier.validateToken(idTokenString);
+ Optional<String> verifiedEmail = GoogleTokenVerifier.validateToken(googleClientId, idTokenString);
if (verifiedEmail.isPresent()) {
String email = verifiedEmail.get();
com.juick.model.User visitor = userService.getUserByEmail(email);