z4r / python-rtkit

Python Api for Request Tracker's REST interface
http://z4r.github.com/python-rtkit/
Other
68 stars 44 forks source link

added support for kerberos-based authentication #6

Closed T0MASD closed 12 years ago

T0MASD commented 12 years ago

This adds kerberos-based authentication, it uses urllib2_kerberos (http://pypi.python.org/pypi/urllib2_kerberos/)

z4r commented 12 years ago

Hi Tomas, I would prefer that the import was contingent upon the use of the handler

def __init__(self, username, password, url):
    try:
        from urllib2_kerberos import HTTPKerberosAuthHandler
    except ImportError:
        raise ImportError('You need [....] try: pip install urllib2_kerberos')
    [...]
}

Ok?

T0MASD commented 12 years ago

On Fri, May 4, 2012 at 8:53 PM, Andrea de Marco reply@reply.github.com wrote:

Hi Tomas, I would prefer that the import was contingent upon the use of the handler

Andrea, thanks for the feedback, I have pushed an update. https://github.com/T0MASD/python-rtkit/commit/c04cf74c5fa8b7266f42c8e5dd19376c9c0dc010

Best Regards, Tomas