From 673d732d341eef6cadaaf1fdeef11aac5bdca3eb Mon Sep 17 00:00:00 2001 From: "Glen K. Peterson" Date: Tue, 19 Jul 2016 19:56:26 -0400 Subject: [PATCH] Updated comments which looked outdated to me. The example here: https://developers.google.com/identity/sign-in/web/backend-auth Shows: new GoogleIdTokenVerifier.Builder(transport, jsonFactory) But doesn't show where the transport or jsonFactory come from. It was easy to find the right JSON library from the left-nav here: https://developers.google.com/api-client-library/java/google-http-java-client/setup But it was not so easy to find a HTTPTransport from that page or from the Javadoc here: https://github.com/google/google-http-java-client/blob/dev/google-http-client/src/main/java/com/google/api/client/http/HttpTransport.java Both those sources suggested that plain old Java projects use com.google.api.client.javanet.NetHttpTransport which I could not find. But com.google.api.client.googleapis.javanet.GoogleNetHttpTransport was already included in the google-api-cient and worked for me! The suggestion to use GoogleNetHttpTransport came from here: https://developers.google.com/google-apps/tasks/quickstart/java#step_3_configure_the_project_build I hope this is helpful. --- .../main/java/com/google/api/client/http/HttpTransport.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/google-http-client/src/main/java/com/google/api/client/http/HttpTransport.java b/google-http-client/src/main/java/com/google/api/client/http/HttpTransport.java index 6bfb67de9..5fa036f7b 100644 --- a/google-http-client/src/main/java/com/google/api/client/http/HttpTransport.java +++ b/google-http-client/src/main/java/com/google/api/client/http/HttpTransport.java @@ -52,8 +52,10 @@ * *
  • Other Java environments *