Skip to content

Commit f6a2981

Browse files
no need to verify issuer (GoogleCloudPlatform#4294)
1 parent 7ce8406 commit f6a2981

File tree

1 file changed

+0
-6
lines changed
  • appengine/standard_python3/pubsub

1 file changed

+0
-6
lines changed

appengine/standard_python3/pubsub/main.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,6 @@ def receive_messages_handler():
8585
# case they would all share the same token for a limited time window.
8686
claim = id_token.verify_oauth2_token(token, requests.Request(),
8787
audience='example.com')
88-
# Must also verify the `iss` claim.
89-
if claim['iss'] not in [
90-
'accounts.google.com',
91-
'https://accounts.google.com'
92-
]:
93-
raise ValueError('Wrong issuer.')
9488
CLAIMS.append(claim)
9589
except Exception as e:
9690
return 'Invalid token: {}\n'.format(e), 400

0 commit comments

Comments
 (0)