lib 1013814 // google http client lib 1013815 // google api client lib 1013816 // google oauth client lib 1013817 // jackson lib 1013818 // google jackson2 lib 1013819 // google http client appengine import com.google.api.client.googleapis.auth.oauth2.GoogleIdToken; import com.google.api.client.googleapis.auth.oauth2.GoogleIdToken.Payload; import com.google.api.client.googleapis.auth.oauth2.GoogleIdTokenVerifier; import com.google.api.client.json.jackson2.JacksonFactory; import com.google.api.client.http.javanet.NetHttpTransport; static Payload googleVerifyUserToken2(S clientID, S token) ctex { print("Google verify started."); new NetHttpTransport transport; GoogleIdTokenVerifier verifier = new GoogleIdTokenVerifier.Builder(transport, new JacksonFactory) .setAudience(Collections.singletonList(clientID)) .build(); GoogleIdToken idToken = verifier.verify(token); if (idToken != null) { Payload payload = idToken.getPayload(); print("Google verify confirmed: " + payload.getEmail()); ret payload; } print("Google verify failed"); null; }