From 7415741889c4caea5533c460f9a1563228b85c50 Mon Sep 17 00:00:00 2001 From: Allen Li Date: Mon, 9 Dec 2024 23:17:09 +0000 Subject: [PATCH] Add missing luci_auth property to GitCredsAuthenticator Missed copying this in https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6073043 Bug: b/382341041 Change-Id: I39b8ea654be603b020dd944cc8cd0404b063e496 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6082492 Reviewed-by: Josip Sokcevic Commit-Queue: Josip Sokcevic Auto-Submit: Allen Li --- gerrit_util.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gerrit_util.py b/gerrit_util.py index 85654050a1..d70fb2d669 100644 --- a/gerrit_util.py +++ b/gerrit_util.py @@ -860,6 +860,10 @@ class GitCredsAuthenticator(_Authenticator): def __init__(self): self._authenticator = auth.GerritAuthenticator() + @property + def luci_auth(self) -> auth.Authenticator: + return self._authenticator + def authenticate(self, conn: HttpConn): conn.req_headers[ 'Authorization'] = f'Bearer {self._authenticator.get_access_token()}'