From 7875db31ebe7d0ef0976218197d122ec8f6068fa Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Sun, 29 Sep 2024 15:54:21 +0200 Subject: [PATCH] fix: disable autologin for OAuth 2 Otherwise, read-only access constantly gets redirected to our login page. Signed-off-by: Raito Bezarius --- buildbot_nix/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildbot_nix/__init__.py b/buildbot_nix/__init__.py index 59959f6..3f7a326 100644 --- a/buildbot_nix/__init__.py +++ b/buildbot_nix/__init__.py @@ -923,7 +923,7 @@ class GerritNixConfigurator(ConfiguratorBase): config["www"].setdefault("plugins", {}) if "auth" not in config["www"]: - config["www"]["auth"] = LixSystemsOAuth2('buildbot', read_secret_file('buildbot-oauth2-secret'), autologin=True) + config["www"]["auth"] = LixSystemsOAuth2('buildbot', read_secret_file('buildbot-oauth2-secret'), autologin=False) if "authz" not in config["www"]: config["www"]["authz"] = util.Authz(