requests / requests-kerberos

An authentication handler for using Kerberos with Python Requests.
Other
289 stars 101 forks source link

fix #181 add password param to constructor #182

Closed razzzp closed 1 year ago

razzzp commented 1 year ago

Hi,

This pull request is for parsing the principal if it is given in the form of user@REALM:password. It will split the username and password and pass them both to spnego.client().

jborean93 commented 1 year ago

It'll be better to just add a new kwarg where you can specify the password. Relying on string splitting will be error prone, especially if you start having usernames/realms with : in them.

razzzp commented 1 year ago

oh so just add a "password" param to the HTTPKerberosAuth.init?