mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
gerrit_util: Use git-credential-luci instead of luci-auth
git-credential-luci is very similar to luci-auth, except that it is expressly for git/Gerrit. Therefore, it hard codes the scopes needed for git/Gerrit. It's also a separate binary, which makes it more convenient for us to configure it for ReAuth later. Bug: b/382341041 Change-Id: I7de56d3922adac7eb4671849eb6e30be310d4de7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6073043 Reviewed-by: Josip Sokcevic <sokcevic@chromium.org> Commit-Queue: Allen Li <ayatane@chromium.org>
This commit is contained in:
@@ -130,7 +130,7 @@ class ConfigChanger(object):
|
||||
email: str = scm.GIT.GetConfig(cwd, 'user.email') or ''
|
||||
if gerrit_util.ShouldUseSSO(gerrit_host, email):
|
||||
return ConfigMode.NEW_AUTH_SSO
|
||||
if not gerrit_util.LuciAuthAuthenticator.gerrit_account_exists(
|
||||
if not gerrit_util.GitCredsAuthenticator.gerrit_account_exists(
|
||||
gerrit_host):
|
||||
return ConfigMode.NO_AUTH
|
||||
return ConfigMode.NEW_AUTH
|
||||
|
||||
Reference in New Issue
Block a user