File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
appengine/standard_python37/pubsub Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,12 @@ def receive_messages_handler():
76
76
77
77
# Verify and decode the JWT. `verify_oauth2_token` verifies
78
78
# the JWT signature, the `aud` claim, and the `exp` claim.
79
+ # Note: For high volume push requests, it would save some network
80
+ # overhead if you verify the tokens offline by downloading Google's
81
+ # Public Cert and decode them using the `google.auth.jwt` module;
82
+ # caching already seen tokens works best when a large volume of
83
+ # messages have prompted a single push server to handle them, in which
84
+ # case they would all share the same token for a limited time window.
79
85
claim = id_token .verify_oauth2_token (token , requests .Request (),
80
86
audience = 'example.com' )
81
87
# Must also verify the `iss` claim.
You can’t perform that action at this time.
0 commit comments