[
https://issues.apache.org/jira/browse/CXF-9044?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17872482#comment-17872482
]
Andriy Redko edited comment on CXF-9044 at 8/9/24 10:20 PM:
------------------------------------------------------------
Hi [~tom2011] , are you using JAX-WS web services? If yes, you could pass
credentials using request context:
[https://github.com/apache/cxf/blob/main/systests/transports/src/test/java/org/apache/cxf/systest/http_jetty/JettyDigestAuthTest.java#L120]
was (Author: reta):
Hi Tom, are you using JAX-WS web services? If yes, you could pass credentials
using request context:
https://github.com/apache/cxf/blob/main/systests/transports/src/test/java/org/apache/cxf/systest/http_jetty/JettyDigestAuthTest.java#L120
> Unable to configure CXF client for NTLM
> ---------------------------------------
>
> Key: CXF-9044
> URL: https://issues.apache.org/jira/browse/CXF-9044
> Project: CXF
> Issue Type: Task
> Reporter: Tom
> Priority: Trivial
>
> I am trying to use CXF version 4 client to consume a web service secured by
> NTLM. I found CXF-4525 which suggested to use http async client. However, now
> httpConduit is using
> CloseableHttpAsyncClient so it does not have option to set NT credentials
>
> I can use HTTP client to have NT Credential as follows
> CredentialsProvider credsProvider = new BasicCredentialsProvider();
> credsProvider.setCredentials(AuthScope.ANY,
> new NTCredentials("userbane", "password", "", "domain"));
> HttpClient client =
> HttpClientBuilder.create().setDefaultCredentialsProvider(credsProvider).build();
> HttpPost post = new HttpPost("the url");
> Is there a way to inject that HttpClient in CXF 4?
--
This message was sent by Atlassian Jira
(v8.20.10#820010)