I've released 0.3.0 of https://github.com/ktdreyer/txkoji
The main change in this version is GSSAPI login support.
Your Koji hub must support GSSAPI authentication, and you must have a valid Kerberos ticket.
@defer.inlineCallbacks def example(): koji = Connection('mykoji')
result = yield login() print(result) # "True" print('session-id: %s' % koji.session_id)
# "Who am I?" user = yield koji.getLoggedInUser() print(user)
txkoji uses treq-kerberos under the hood to hit Koji's /ssllogin API endpoint asynchronously using HTTP Negotiate authentication.
I don't plan to support Koji's older krbLogin-over-xmlrpc authentication method because I could not find a way to support that outside of python-krbV. Is there any other Python library that can do the mk_req and rd_priv encryption/decryption?
- Ken
koji-devel@lists.fedorahosted.org