From 03b9dfb890f089a604f3ce5808c2d163b4a18d61 Mon Sep 17 00:00:00 2001 From: Mohan Krishnan Date: Mon, 10 Aug 2020 14:27:56 +0800 Subject: [PATCH] Fix the call to validate_iap (#4260) The method signature for validate_iap changed with 41c173 but the call to validate_iap from example_gce_backend.py was not changed --- iap/example_gce_backend.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iap/example_gce_backend.py b/iap/example_gce_backend.py index adf40727a46..4c257080216 100755 --- a/iap/example_gce_backend.py +++ b/iap/example_gce_backend.py @@ -29,9 +29,10 @@ def root(): jwt = flask.request.headers.get('x-goog-iap-jwt-assertion') if jwt is None: return 'Unauthorized request.' + expected_audience = '/projects/{}/global/backendServices/{}'.format(CLOUD_PROJECT_ID, BACKEND_SERVICE_ID) user_id, user_email, error_str = ( validate_jwt.validate_iap_jwt( - jwt, CLOUD_PROJECT_ID, BACKEND_SERVICE_ID)) + jwt, expected_audience)) if error_str: return 'Error: {}'.format(error_str) else: