Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
classabbyamp committed Aug 4, 2024
1 parent 65c0d04 commit 0d5337c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion buildbot_netauth/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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):
Expand Down

0 comments on commit 0d5337c

Please sign in to comment.