New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 826834 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Apr 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug

Blocking:
issue 821506



Sign in to add a comment

Tricium plugin: upgrade from gapi.auth to gapi.auth2?

Project Member Reported by qyears...@chromium.org, Mar 28 2018

Issue description

The buildbucket and tricium Gerrit plugins use gapi.auth to get an OAuth2 bearer token which they use to authenticate with the buildbucket/tricium services on behalf of the logged-in user.

gapi.auth is now deprecated (more than a year ago...) and the replacement is called gapi.auth2.

https://github.com/google/google-api-javascript-client/issues/280#issuecomment-280479373

I suspect that this is why the tricium plugin on the gerrit-review gerrit host is not getting any oauth2 token, and that this is why the Tricium plugin is broken there.

Note: gapi.auth apparently continues to work on chromium-review and other gerrit hosts for now.

Related documentation: https://developers.google.com/api-client-library/javascript/features/authentication
 
Blocking: 821506
Owner: qyears...@chromium.org
Status: Assigned (was: Available)
Owner: ----
Status: (was: Assigned)
Summary: Tricium plugin: upgrade from gapi.auth to gapi.auth2? (was: Buildbucket & tricium plugin: upgrade from gapi.auth to gapi.auth2)
I'm not sure if this is what needs to be done; in https://chromium-review.googlesource.com/c/infra/gerrit-plugins/buildbucket/+/391034 I see that at the time when the gapi.auth code was added, masayasuzuki@ deliberately used gapi.auth instead of gapi.auth2 to avoid popups.
Status: WontFix

Sign in to add a comment