[
https://issues.apache.org/jira/browse/CXF-6817?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dennis Kieselhorst updated CXF-6817:
------------------------------------
Description:
CXF should provide an easy way to configure the basic authentication for a
JAXRS client programmatically, e.g.:
{code:java}
Client client = ClientBuilder.newClient().register(new
java.net.Authenticator() {
@Override
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication("myuser",
"mypassword".toCharArray());
}
});
{code}
See also:
http://stackoverflow.com/questions/25155017/client-side-authentication-with-jax-rs-and-cxf
was:
CXF should provide an easy way to configure the basic authentication for a
JAXRS client programmatically, e.g.:
{code:java}
Client client = ClientBuilder.newClient().register(new Authenticator() {
@Override
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication("myuser",
"mypassword".toCharArray());
}
});
{code}
See also:
http://stackoverflow.com/questions/25155017/client-side-authentication-with-jax-rs-and-cxf
> Provide an easy way to set authentication for JAXRS client
> ----------------------------------------------------------
>
> Key: CXF-6817
> URL: https://issues.apache.org/jira/browse/CXF-6817
> Project: CXF
> Issue Type: Improvement
> Components: JAX-RS
> Affects Versions: 3.1.5
> Reporter: Dennis Kieselhorst
> Fix For: 3.2.0, 3.1.6
>
>
> CXF should provide an easy way to configure the basic authentication for a
> JAXRS client programmatically, e.g.:
> {code:java}
> Client client = ClientBuilder.newClient().register(new
> java.net.Authenticator() {
> @Override
> protected PasswordAuthentication getPasswordAuthentication() {
> return new PasswordAuthentication("myuser",
> "mypassword".toCharArray());
> }
> });
> {code}
> See also:
> http://stackoverflow.com/questions/25155017/client-side-authentication-with-jax-rs-and-cxf
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)