hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nitin Handa <nitin.ha...@oracle.com>
Subject Re: NTLM connection persistence
Date Sat, 31 May 2014 16:36:56 GMT
Can you please explain how will implementing NTLMEngine help in my use case?

Thanks,
Nitin

> On May 31, 2014, at 8:34 AM, Oleg Kalnichevski <olegk@apache.org> wrote:
> 
>> On Fri, 2014-05-30 at 15:57 -0700, Nitin Handa wrote:
>> I want do NTLM authentication and also want to cache connection for 
>> future requests by same user. Since NTLM is connection based so we cant 
>> use same connection for different users.
>> 
>> I looked at this link which exactly describes my requirement:
>> http://hc.apache.org/httpcomponents-client-ga/tutorial/html/authentication.html#d5e715
>> 
>> Only caveat is that I don't want to use httpclient for NTLM 
>> authentication because i want to manually create Type1 and Type3 
>> messages and stick into http headers. But i want to use connection 
>> persistence feature described in above link to make sure that connection 
>> is not used by any other user.
>> 
>> So I am thinking that I can cache HttpClientContext object per session 
>> id (represents a user) and then use to for outbound calls. Do you think 
>> is viable and appropriate solution? if not then please provide 
>> recommendations.
> 
> If all you want is to manually generate Type1 and Type3 NTLM messages
> why would not you just implement a custom NTLMEngine or AuthScheme?
> 
> Oleg 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message