You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@post2shyam don't hold your breath! The NTLM technology is not a good fit for OkHttp: in particular it interferes with connection management. If you'd like to fork and see what you can build, I'm curious to see what it looks like.
Just a proof of concept: (NTLMEngineImpl is standalone version of org.apache.http.impl.auth.NTLMEngineImpl - removed all dependencies to org.apache.http.* and change org.apache.commons.codec.binary.Base64 to android Base64) - works fine with okhttp:2.4.0
usage:
final OkHttpClient client = new OkHttpClient();
client.setAuthenticator(new NTLMAuthenticator(usr, pwd, dom));
Activity
swankjesse commentedon Mar 22, 2014
After learning about NTLM, I don't think we want to implement it. I'm going to icebox this.
post2shyam commentedon May 5, 2015
Eagerly awaiting the NTLM support.
swankjesse commentedon May 5, 2015
@post2shyam don't hold your breath! The NTLM technology is not a good fit for OkHttp: in particular it interferes with connection management. If you'd like to fork and see what you can build, I'm curious to see what it looks like.
swankjesse commentedon May 5, 2015
Also maybe possible to do NTLM as an interceptor? Worth investigating at least.
SelvinPL commentedon Sep 29, 2015
Just a proof of concept: (NTLMEngineImpl is standalone version of org.apache.http.impl.auth.NTLMEngineImpl - removed all dependencies to org.apache.http.* and change org.apache.commons.codec.binary.Base64 to android Base64) - works fine with okhttp:2.4.0
usage:
code:
sryuliwa commentedon Jun 27, 2016
great
swankjesse commentedon Jul 10, 2016
No further action for us to take on this.
zetazaw commentedon Jul 13, 2016
@SelvinPL it works with Okhttp3.4.1 also. Thank you for enlightenment.
javichaques commentedon Nov 2, 2016
@SelvinPL @swankjesse
Hi, which library i need to import to work?
SelvinPL commentedon Nov 2, 2016
Non ... grab code from http://svn.apache.org/repos/asf/httpcomponents/httpclient/tags/4.5.2/httpclient/src/main/java/org/apache/http/impl/auth/NTLMEngineImpl.java ... make few obvious changes to get code compiled ... and that's it
eGorets commentedon Apr 9, 2017
Hi guys. does any one have ready-to-use NTLMEngineImpl.java class? I'm having difficules with modification of it. Project version of SDK is 24
zetazaw commentedon Apr 10, 2017
have you try @SelvinPL advice? otherwise you can trace apache lib and extract from it. I hope i can make a small lib soon.
14 remaining items