Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c0d10c commit aa9bd5eCopy full SHA for aa9bd5e
iap/example_gce_backend.py
@@ -29,9 +29,10 @@ def root():
29
jwt = flask.request.headers.get('x-goog-iap-jwt-assertion')
30
if jwt is None:
31
return 'Unauthorized request.'
32
+ expected_audience = '/projects/{}/global/backendServices/{}'.format(CLOUD_PROJECT_ID, BACKEND_SERVICE_ID)
33
user_id, user_email, error_str = (
34
validate_jwt.validate_iap_jwt(
- jwt, CLOUD_PROJECT_ID, BACKEND_SERVICE_ID))
35
+ jwt, expected_audience))
36
if error_str:
37
return 'Error: {}'.format(error_str)
38
else:
0 commit comments