[devel at bb.net] Custom authentication
tardyp at gmail.com
Thu Oct 5 08:02:56 UTC 2017
For login/password auth, buildbot uses twisted authentication framework.
You should not derive AuthBase, but rather something like this:
def __init__(self, **kwargs):
and MyCredentialChecker should be a ICredentialsChecker like this reference
More info on twisted cred framework:
On Wed, Oct 4, 2017 at 11:46 AM Maciek Dems <macdems at gmail.com> wrote:
> I need to write a authentication module for Buildbot WWW using external
> database. I have no access to the plain-text passwords, however, I have got
> a callable:
> check_password(user, pass) -> bool
> that checks if the provided password is correct.
> The problem is, I don't know how to integrate it with the Buildbot auth
> infrastructure. I understand that I need to derive
> and write custom getLoginResource method. However, this is the point where
> stuck. I don't understand what this login resource actually is.
> Actually I think, it would be beneficial to provide an AuthBase subclass
> gets a password-checking callable as an argument. I can do this and share
> patch if someone explains me how.
> Thanks and regards,
> Maciek Dems http://dems.art.pl/
> devel mailing list
> devel at buildbot.net
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the devel