Skip to content

Commit

Permalink
no need to verify issuer (#4294)
Browse files Browse the repository at this point in the history
  • Loading branch information
anguillanneuf authored Jul 14, 2020
1 parent 7ce8406 commit f6a2981
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions appengine/standard_python3/pubsub/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,6 @@ def receive_messages_handler():
# case they would all share the same token for a limited time window.
claim = id_token.verify_oauth2_token(token, requests.Request(),
audience='example.com')
# Must also verify the `iss` claim.
if claim['iss'] not in [
'accounts.google.com',
'https://accounts.google.com'
]:
raise ValueError('Wrong issuer.')
CLAIMS.append(claim)
except Exception as e:
return 'Invalid token: {}\n'.format(e), 400
Expand Down

0 comments on commit f6a2981

Please sign in to comment.