visoft / ruby_odata

OData Consumer for Ruby
http://bit.ly/IntroRubyOData
MIT License
107 stars 52 forks source link

NTLM authorization #12

Open talenor opened 12 years ago

talenor commented 12 years ago

Need support Windows NTLM Authorization

steventebrinke commented 7 years ago

The history references NTLM in version 0.2. Is there any example on how to use NTLM?

visoft commented 7 years ago

I, unfortunately, don't know about NTLM support currently. The project was migrated to Faraday which should allow for NTLM authorization, but I wasn't involved in the change, nor have I had a chance to really test it out, hence it's beta status.

It would be greatly appreciated if you could augment the README/code with true NTLM support. I'd recommend checking out the Faraday project for hints on how to use it with ruby_odata.

steventebrinke commented 7 years ago

Unfortunately, NTLM support is not well documented. I know how it works with HTTPI, but Faraday does not seem to have any documentation on how to use NTLM, even though some people mention that it should be possible.

visoft commented 7 years ago

I've looked around and can't really find any documentation on NTLM with Faraday. The change was implemented by a contributor in this pull-request, but it wasn't fully tested out. I think it's time to re-evaluate options in terms of libraries. Personally, I liked rest-client, but it was limited in what we could do.

steventebrinke commented 7 years ago

Faraday is quite flexible, but not so well documented. I've patched the OData library a bit to allow reconfiguring Faraday, which allows me to use NTLM auth. I'll create a pull request so you can review my changes.