Tricium and Buildbucket plugins should use plugin.restApi.getLoggedIn |
||||
Issue descriptionCurrently in the buildbucket and tricium plugins, we check for the existence of the XSRF_TOKEN cookie in order to check if the user is logged on. This approach is relatively fragile and the more correct way is to call plugin.restApi().getLoggedIn() where plugin is the Gerrit Plugin API object.
,
Nov 21 2017
The following revision refers to this bug: https://chromium.googlesource.com/infra/gerrit-plugins/tricium/+/21227844c6df7ba381443fc7805532c3b1aaf74c commit 21227844c6df7ba381443fc7805532c3b1aaf74c Author: Quinten Yearsley <qyearsley@chromium.org> Date: Tue Nov 21 23:53:59 2017 Tricium plugin: Use plugin.restApi().getLoggedIn. Bug: 787208 Change-Id: I46bc462ca73592445e983e6da22d70a81ffbe683 Reviewed-on: https://chromium-review.googlesource.com/783639 Reviewed-by: Nodir Turakulov <nodir@chromium.org> [modify] https://crrev.com/21227844c6df7ba381443fc7805532c3b1aaf74c/src/main/resources/static/tricium-view.js [modify] https://crrev.com/21227844c6df7ba381443fc7805532c3b1aaf74c/src/main/resources/static/tricium.js [modify] https://crrev.com/21227844c6df7ba381443fc7805532c3b1aaf74c/src/main/resources/static/tricium-client.js [modify] https://crrev.com/21227844c6df7ba381443fc7805532c3b1aaf74c/test/tricium_test.html [modify] https://crrev.com/21227844c6df7ba381443fc7805532c3b1aaf74c/src/main/resources/static/tricium-view.html
,
Nov 27 2017
,
Jan 22 2018
,
Jan 23 2018
|
||||
►
Sign in to add a comment |
||||
Comment 1 by bugdroid1@chromium.org
, Nov 21 2017