Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9CB6210724 for ; Fri, 18 Apr 2014 08:56:20 +0000 (UTC) Received: (qmail 44986 invoked by uid 500); 18 Apr 2014 08:56:20 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 44649 invoked by uid 500); 18 Apr 2014 08:56:18 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 44379 invoked by uid 99); 18 Apr 2014 08:56:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Apr 2014 08:56:16 +0000 Date: Fri, 18 Apr 2014 08:56:16 +0000 (UTC) From: "Jayashankar (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CXF-5671) NTLM API not exposed MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-5671?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13973904#comment-13973904 ] Jayashankar commented on CXF-5671: ---------------------------------- Hi, I set the Credentials object to dispatch object, but it didn't work, I'm using cxf 3.0 milestone release 2. I tried using the async way, conduit.getAsyncClient() gives a CloseableHttpAsyncClient where there is no methods to set credentials, there has to be some way to set the credentials here like i mentioned above (we are doing it for 2.7.7). > NTLM API not exposed > -------------------- > > Key: CXF-5671 > URL: https://issues.apache.org/jira/browse/CXF-5671 > Project: CXF > Issue Type: Bug > Components: JAX-RS Security > Affects Versions: 3.0.0-milestone2 > Environment: Tomcat 6, jdk (1.6 and 1.7) > Reporter: Jayashankar > > NTLM API using AsyncHTTPConduit is deprecated in cxf 3.0 milestone 2 release, where as it is working in 2.7.7.. It is affecting backward compatibility and there is no proper API to refactor. > HTTPConduit http = (HTTPConduit)client.getConduit(); > if ( http instanceof AsyncHTTPConduit ) { > AsyncHTTPConduit conduit = (AsyncHTTPConduit)http; > DefaultHttpAsyncClient defaultHttpAsyncClient = null; > try { > defaultHttpAsyncClient = conduit.getHttpAsyncClient(); > } catch (IOException e) { > // TODO Auto-generated catch block } > > defaultHttpAsyncClient.getCredentialsProvider().setCredentials( AuthScope.ANY, new NTCredentials( "user", "pwd", "host", "domain" ) ); > > conduit.getClient().setAllowChunking( false ); > conduit.getClient().setAutoRedirect( true ); > } -- This message was sent by Atlassian JIRA (v6.2#6252)