You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Jayashankar (JIRA)" <ji...@apache.org> on 2014/04/18 11:01:30 UTC
[jira] [Comment Edited] (CXF-5671) NTLM API not exposed
[ https://issues.apache.org/jira/browse/CXF-5671?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13973904#comment-13973904 ]
Jayashankar edited comment on CXF-5671 at 4/18/14 8:59 AM:
-----------------------------------------------------------
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 are 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).
was (Author: karnj):
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)