Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-6817

Provide an easy way to set authentication for JAXRS client

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.1.5
    • None
    • JAX-RS
    • None
    • Unknown

    Description

      CXF should provide an easy way to configure the basic authentication for a JAXRS client programmatically, e.g.:

            Client client = ClientBuilder.newClient().register(new java.net.Authenticator() {
               @Override
               protected PasswordAuthentication getPasswordAuthentication() {
                  return new PasswordAuthentication("myuser", "mypassword".toCharArray());
               }
            });
      

      See also: http://stackoverflow.com/questions/25155017/client-side-authentication-with-jax-rs-and-cxf

      Attachments

        Activity

          People

            Unassigned Unassigned
            deki Dennis Kieselhorst
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: