Return-Path: X-Original-To: apmail-hc-httpclient-users-archive@www.apache.org Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 72C23181F3 for ; Wed, 1 Jul 2015 17:44:03 +0000 (UTC) Received: (qmail 47439 invoked by uid 500); 1 Jul 2015 17:44:03 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 47392 invoked by uid 500); 1 Jul 2015 17:44:03 -0000 Mailing-List: contact httpclient-users-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-users@hc.apache.org Received: (qmail 47381 invoked by uid 99); 1 Jul 2015 17:44:03 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Jul 2015 17:44:03 +0000 Received: from [192.168.1.9] (p5DDB4B2C.dip0.t-ipconnect.de [93.219.75.44]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 61AB91A0254 for ; Wed, 1 Jul 2015 17:44:02 +0000 (UTC) Message-ID: <559426DE.8010403@apache.org> Date: Wed, 01 Jul 2015 19:43:58 +0200 From: Michael Osipov User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: HttpClient User Discussion Subject: Re: NTLM authentication, disabling "auto lookup" of credentials? References: <8C4C98670F20974CBD7A4747AAABB8C8530F41D9@VM-EXCHMBX02P.CORP.INT> In-Reply-To: <8C4C98670F20974CBD7A4747AAABB8C8530F41D9@VM-EXCHMBX02P.CORP.INT> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Am 2015-07-01 um 17:56 schrieb Morrison, Wes: > Starting from the example, org.apache.http.examples.client.win. > ClientWinAuth > > There's a comment starting on line 49 that says: > > // There is no need to provide user credentials // HttpClient will > attempt to access current user security context through // Windows > platform specific methods via JNI. > > This works. However, I want to provide credentials explicitly, and > have it fail if those credentials are not supplied, or are invalid, > with no fallback to getting credentials from the system. > > I haven't found any documentation showing how to do this. I've looked > into the code for WinHttpClients, copied the createBuilder method > into my own class and modified it, like this: Not available and won't work. The code is experimental and incomplete. A rewrite won't happen before 5.0 GA. You might wan't to have a look at my tickets in Apache JIRA. Michael --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org For additional commands, e-mail: httpclient-users-help@hc.apache.org