diff --git a/appengine-java8/firebase-tictactoe/pom.xml b/appengine-java8/firebase-tictactoe/pom.xml index f90106d72e4..db0d03991b4 100644 --- a/appengine-java8/firebase-tictactoe/pom.xml +++ b/appengine-java8/firebase-tictactoe/pom.xml @@ -52,7 +52,7 @@ com.google.auth google-auth-library-oauth2-http - 0.26.0 + 0.27.0 com.google.code.gson diff --git a/compute/cmdline/pom.xml b/compute/cmdline/pom.xml index f57e1d83746..a7020ace4cf 100644 --- a/compute/cmdline/pom.xml +++ b/compute/cmdline/pom.xml @@ -40,7 +40,7 @@ limitations under the License. com.google.auth google-auth-library-oauth2-http - 0.26.0 + 0.27.0 com.google.apis diff --git a/endpoints/getting-started/clients/pom.xml b/endpoints/getting-started/clients/pom.xml index fe5a0443c2f..b868443cbf3 100644 --- a/endpoints/getting-started/clients/pom.xml +++ b/endpoints/getting-started/clients/pom.xml @@ -28,7 +28,7 @@ com.google.auth google-auth-library-oauth2-http - 0.26.0 + 0.27.0 com.auth0 diff --git a/healthcare/v1/pom.xml b/healthcare/v1/pom.xml index 8b873eebd45..f3b7167e892 100644 --- a/healthcare/v1/pom.xml +++ b/healthcare/v1/pom.xml @@ -90,7 +90,7 @@ com.google.auth google-auth-library-oauth2-http - 0.26.0 + 0.27.0 com.google.cloud diff --git a/iam/api-client/pom.xml b/iam/api-client/pom.xml index 7167fd57ca4..b2b77e752b9 100644 --- a/iam/api-client/pom.xml +++ b/iam/api-client/pom.xml @@ -45,7 +45,7 @@ com.google.auth google-auth-library-oauth2-http - 0.26.0 + 0.27.0 com.google.http-client diff --git a/iap/pom.xml b/iap/pom.xml index 7691dea765c..2b782de27f6 100644 --- a/iap/pom.xml +++ b/iap/pom.xml @@ -58,7 +58,7 @@ com.google.auth google-auth-library-oauth2-http - 0.26.0 + 0.27.0 diff --git a/iap/src/main/java/com/example/iap/BuildIapRequest.java b/iap/src/main/java/com/example/iap/BuildIapRequest.java index b3d76ab10d0..4e0c25f6ef3 100644 --- a/iap/src/main/java/com/example/iap/BuildIapRequest.java +++ b/iap/src/main/java/com/example/iap/BuildIapRequest.java @@ -15,6 +15,7 @@ */ package com.example.iap; + // [START iap_make_request] import com.google.api.client.http.HttpRequest; diff --git a/iap/src/main/java/com/example/iap/VerifyIapRequestHeader.java b/iap/src/main/java/com/example/iap/VerifyIapRequestHeader.java index 5f894187cd9..842dbd8cf70 100644 --- a/iap/src/main/java/com/example/iap/VerifyIapRequestHeader.java +++ b/iap/src/main/java/com/example/iap/VerifyIapRequestHeader.java @@ -15,6 +15,7 @@ */ package com.example.iap; + // [START iap_validate_jwt] import com.google.api.client.http.HttpRequest; @@ -42,11 +43,10 @@ boolean verifyJwtForAppEngine(HttpRequest request, long projectNumber, String pr String.format("/projects/%s/apps/%s", Long.toUnsignedString(projectNumber), projectId)); } - boolean verifyJwtForComputeEngine( - HttpRequest request, long projectNumber, long backendServiceId) throws Exception { + boolean verifyJwtForComputeEngine(HttpRequest request, long projectNumber, long backendServiceId) + throws Exception { // Check for iap jwt header in incoming request - String jwtToken = request.getHeaders() - .getFirstHeaderStringValue("x-goog-iap-jwt-assertion"); + String jwtToken = request.getHeaders().getFirstHeaderStringValue("x-goog-iap-jwt-assertion"); if (jwtToken == null) { return false; } @@ -58,10 +58,8 @@ boolean verifyJwtForComputeEngine( } private boolean verifyJwt(String jwtToken, String expectedAudience) { - TokenVerifier tokenVerifier = TokenVerifier.newBuilder() - .setAudience(expectedAudience) - .setIssuer(IAP_ISSUER_URL) - .build(); + TokenVerifier tokenVerifier = + TokenVerifier.newBuilder().setAudience(expectedAudience).setIssuer(IAP_ISSUER_URL).build(); try { JsonWebToken jsonWebToken = tokenVerifier.verify(jwtToken); diff --git a/iot/api-client/end-to-end-example/pom.xml b/iot/api-client/end-to-end-example/pom.xml index 2ee4bb66c96..9b68986e0a0 100644 --- a/iot/api-client/end-to-end-example/pom.xml +++ b/iot/api-client/end-to-end-example/pom.xml @@ -68,7 +68,7 @@ com.google.auth google-auth-library-oauth2-http - 0.26.0 + 0.27.0 com.google.guava diff --git a/iot/api-client/manager/pom.xml b/iot/api-client/manager/pom.xml index 5cda2aac445..7cd33c61325 100644 --- a/iot/api-client/manager/pom.xml +++ b/iot/api-client/manager/pom.xml @@ -77,7 +77,7 @@ com.google.auth google-auth-library-oauth2-http - 0.26.0 + 0.27.0 com.google.guava diff --git a/jobs/v3/pom.xml b/jobs/v3/pom.xml index 85a51f9ee1d..bed0771e7a4 100644 --- a/jobs/v3/pom.xml +++ b/jobs/v3/pom.xml @@ -37,7 +37,7 @@ com.google.auth google-auth-library-oauth2-http - 0.26.0 + 0.27.0 com.google.http-client diff --git a/mlengine/online-prediction/pom.xml b/mlengine/online-prediction/pom.xml index 6c878e4de63..79beb57f57c 100644 --- a/mlengine/online-prediction/pom.xml +++ b/mlengine/online-prediction/pom.xml @@ -66,7 +66,7 @@ limitations under the License. com.google.auth google-auth-library-oauth2-http - 0.26.0 + 0.27.0 com.google.apis diff --git a/monitoring/cloud-client/pom.xml b/monitoring/cloud-client/pom.xml index 0ea855b21ac..eb6396a2e3a 100644 --- a/monitoring/cloud-client/pom.xml +++ b/monitoring/cloud-client/pom.xml @@ -76,7 +76,7 @@ com.google.auth google-auth-library-oauth2-http - 0.26.0 + 0.27.0 diff --git a/monitoring/v3/pom.xml b/monitoring/v3/pom.xml index b6e020f6b27..f824b33b55f 100644 --- a/monitoring/v3/pom.xml +++ b/monitoring/v3/pom.xml @@ -72,7 +72,7 @@ com.google.auth google-auth-library-oauth2-http - 0.26.0 + 0.27.0 diff --git a/run/authentication/pom.xml b/run/authentication/pom.xml index 22a781d7446..ed00afef6c2 100644 --- a/run/authentication/pom.xml +++ b/run/authentication/pom.xml @@ -37,7 +37,7 @@ limitations under the License. com.google.auth google-auth-library-oauth2-http - 0.26.0 + 0.27.0 diff --git a/run/markdown-preview/editor/pom.xml b/run/markdown-preview/editor/pom.xml index 0fec0ef096a..f465fd858eb 100644 --- a/run/markdown-preview/editor/pom.xml +++ b/run/markdown-preview/editor/pom.xml @@ -59,7 +59,7 @@ com.google.auth google-auth-library-oauth2-http - 0.26.0 + 0.27.0 junit diff --git a/storage/storage-transfer/pom.xml b/storage/storage-transfer/pom.xml index 13380d84aff..16aa0713be5 100644 --- a/storage/storage-transfer/pom.xml +++ b/storage/storage-transfer/pom.xml @@ -54,7 +54,7 @@ com.google.auth google-auth-library-oauth2-http - 0.26.0 + 0.27.0 com.google.guava diff --git a/storage/xml-api/cmdline-sample/pom.xml b/storage/xml-api/cmdline-sample/pom.xml index c7a66e81370..e5a21ffa289 100644 --- a/storage/xml-api/cmdline-sample/pom.xml +++ b/storage/xml-api/cmdline-sample/pom.xml @@ -81,7 +81,7 @@ com.google.auth google-auth-library-oauth2-http - 0.26.0 + 0.27.0 com.google.http-client diff --git a/vision/face-detection/pom.xml b/vision/face-detection/pom.xml index 3f78c4ccbf9..e20d9ab88cf 100644 --- a/vision/face-detection/pom.xml +++ b/vision/face-detection/pom.xml @@ -46,7 +46,7 @@ com.google.auth google-auth-library-oauth2-http - 0.26.0 + 0.27.0 com.google.guava