linkedin / pyexchange

Python wrapper for Microsoft Exchange
Apache License 2.0
152 stars 98 forks source link

Added support for HTTP Basic Authentication #65

Open SA0TAY opened 8 years ago

SA0TAY commented 8 years ago

Not elegant – a fair few lines of duplicated code – but a more elegant solution would require some restructuring. This'll support HTTP Basic Authentication until such a restructuring is undertaken.

matiboy commented 8 years ago

@konaya Thanks for that, was going nuts over 401 from office365. I really needed this as well as my own PR so I merged your PR into my repo and revamped (removed repeated code):

Is it correct to assume that the only difference is to set the password_manager to Basic Auth instead of NTLM?

SA0TAY commented 8 years ago

@matiboy Yeah, pretty much. I no longer have the ability to give it a try, but it looks good. Certainly better than mine :)