You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""Message received from PubSub when the log sink detects a new resource"""
177
+
logging.info("label_one called")
178
+
increment_invocation_count("label_one")
177
179
ok=__check_pubsub_jwt()
178
180
ifnotok:
179
181
return"JWT Failed", 400
180
182
181
-
increment_invocation_count("label_one")
182
183
withgae_memory_logging("label_one"):
183
184
184
185
plugins_found= []
@@ -234,6 +235,10 @@ def label_one():
234
235
235
236
def__check_pubsub_jwt():
236
237
try:
238
+
#TODO the sample https://github.com/GoogleCloudPlatform/python-docs-samples/blob/ff4c1d55bb5b6995c63383469535604002dc9ba2/appengine/standard_python3/pubsub/main.py#L69
239
+
# has this. I am not sure why or how the token arg gets there.
240
+
# if request.args.get("token", "") != current_app.config["PUBSUB_VERIFICATION_TOKEN"]:
0 commit comments