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:
parent
f2d7f25f86
commit
7875db31eb
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue