Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2121)

Unified Diff: appengine/chromium_status/appengine_module/chromium_status/status.py

Issue 891713003: Allow authenticated POST to get current status. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Simplify. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/chromium_status/appengine_module/chromium_status/status.py
diff --git a/appengine/chromium_status/appengine_module/chromium_status/status.py b/appengine/chromium_status/appengine_module/chromium_status/status.py
index 8ab438712c8871376526fad71bbbb788db62b525..ab4272c603bd5d95d70e506cf1e63fe52eb72405 100644
--- a/appengine/chromium_status/appengine_module/chromium_status/status.py
+++ b/appengine/chromium_status/appengine_module/chromium_status/status.py
@@ -314,6 +314,14 @@ class CurrentPage(BasePage):
else:
self._handle()
+ @utils.requires_bot_login
+ def post(self):
+ """Handles the same get request from a backdoor.
+
+ POST to receive the password plaintext without polluting the logs.
+ """
+ return self._handle()
+
@utils.requires_read_access
def _handle(self):
"""Displays the current message in various formats."""
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698