diff --git a/buildbot_netauth/__init__.py b/buildbot_netauth/__init__.py index d719608..d5d8cf5 100644 --- a/buildbot_netauth/__init__.py +++ b/buildbot_netauth/__init__.py @@ -19,6 +19,7 @@ class BuildbotNetAuth(util.CustomAuth, AvatarBase, UserInfoProviderBase): :param conf: path to a NetAuth config file, optional, ignored if `na_inst` is provided :param kwargs: all other keyword arguments are passed to the NetAuth instance, if it is created internally """ + name = "netauth" def __init__(self, *, conf: Path | None = None, **kwargs): kwargs["service_name"] = "buildbot" @@ -28,7 +29,7 @@ def __init__(self, *, conf: Path | None = None, **kwargs): else: self.netauth = netauth.NetAuth(**kwargs) - super().__init__() + super().__init__(userInfoProvider=self) def requestAvatarId(self, cred): if self.check_credentials(cred.username, cred.password):