[devel at bb.net] Custom authentication
Maciek Dems
macdems at gmail.com
Wed Oct 4 09:46:47 UTC 2017
Hello,
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 buildbot.www.auth.AuthBase
and write custom getLoginResource method. However, this is the point where I'm
stuck. I don't understand what this login resource actually is.
Actually I think, it would be beneficial to provide an AuthBase subclass that
gets a password-checking callable as an argument. I can do this and share the
patch if someone explains me how.
Thanks and regards,
Maciek
--
Maciek Dems http://dems.art.pl/
More information about the devel
mailing list