txkoji 0.4.0 available
by Ken Dreyer
I've released 0.4.0 of https://github.com/ktdreyer/txkoji
The main change in this version is Client SSL login support.
Your Koji hub must support Client SSL authentication, and you must have a valid
SSL cert configured in /etc/koji.conf.d/*.conf
txkoji uses treq under the hood to hit Koji's /ssllogin API endpoint
asynchronously using SSL client authentication.
- Ken
5 years, 2 months
txkoji 0.3.0 available
by Ken Dreyer
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
5 years, 2 months