fix github avatar authentication

This commit is contained in:
Jörg Thalheim 2023-11-12 06:47:13 +01:00
parent 8dbd6a2101
commit c477a14d1a

View file

@ -816,7 +816,7 @@ class NixConfigurator(ConfiguratorBase):
if not config["www"].get("auth"): if not config["www"].get("auth"):
config["www"]["avatar_methods"] = config["www"].get("avatar_methods", []) config["www"]["avatar_methods"] = config["www"].get("avatar_methods", [])
config["www"]["avatar_methods"].append( config["www"]["avatar_methods"].append(
util.AvatarGitHub(self.github.token()) util.AvatarGitHub(token=self.github.token())
) )
config["www"]["auth"] = util.GitHubAuth( config["www"]["auth"] = util.GitHubAuth(
self.github.oauth_id, read_secret_file(self.github.oauth_secret_name) self.github.oauth_id, read_secret_file(self.github.oauth_secret_name)