hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: Authenticate Proxy using currently logged on domain user's credentials
Date Thu, 01 Dec 2011 21:07:51 GMT
On Thu, 2011-12-01 at 22:00 +0100, Oleg Kalnichevski wrote:
> On Thu, 2011-12-01 at 10:27 -0800, Nitin Arora wrote:
> > Oleg,
> > 
> > I found out that there is an implementation of HttpURLConnection in the
> > package (sun.net.www.protocol.http) which uses the current logged on user's
> > credentials to perform NTLM authentication. 
> > 
> > Based on the debugging that I've done, I did not see the usage of native
> > windows API. It's a pure Java based implementation.
> 
> I seriously doubt that, but you are very welcome to prove me wrong.
> 

Here you go

http://www.docjar.com/html/api/sun/net/www/protocol/http/NTLMAuthSequence.java.html

Oleg

> > Can't we have the same implementation in the Apache HttpClient library?
> > 
> 
> You are welcome to contribute similar implementation to the project as
> long as it is a 'clean room' implementation which does not contain bits
> of Oracle code.
> 
> Oleg
> 
> > I'm currently figuring out how can I use the same logic as being used in
> > sun.net.www.http.HttpURLConnection in the Apache HttpClient Library. If you
> > aware then can you share your thoughts?
> > 
> > Using native windows API is the last option that I would opt for.
> > 
> > Nitin
> > 
> > 
> > olegk wrote:
> > > 
> > > On Tue, 2011-11-29 at 16:50 -0800, Nitin Arora wrote:
> > >> Hey guys,
> > >> 
> > >> It's been a week now, no replies so far.
> > >> 
> > >> Oleg, Do you have any suggestions for the problem that I'm facing or any
> > >> pointer on how to achieve integrated user authentication?
> > >> 
> > > 
> > > Using Native Windows Security API through JNI.
> > > 
> > > Oleg
> > > 
> > > PS: this issue has been beaten to death on so many occasions that it is
> > > no longer funny.
> > > 
> > > 
> > 
> 
> 
> 
> ---------------------------------------------------------------------
> 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