fix: disable autologin for OAuth 2

Otherwise, read-only access constantly gets redirected to our login
page.

Signed-off-by: Raito Bezarius <raito@lix.systems>
This commit is contained in:
raito 2024-09-29 15:54:21 +02:00
parent f2d7f25f86
commit 7875db31eb

View file

@ -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(