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

With CXF 3.2.1, using UsernameToken, cannot receive password in callback

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Not A Problem
    • Affects Version/s: 3.2.1
    • Fix Version/s: None
    • Component/s: WS-* Components
    • Labels:
      None
    • Environment:

      Java 8.

      CXF 3.2.1

      wss4j-2.1.jar

      xmlsec-2.1.0.jar

    • Estimated Complexity:
      Unknown

      Description

      I am attaching my SOAP request.

      It has SOAP Header with usernametoken which also has username and password in plain text.

      I wrote a CallbackHandler to receive this username and password on server.

      I used to get the username and password in cxf 2.7.6 in my callbackhandler. Whereas in cxf 3.2.1 I am no longer getting password. Its coming in as null. I did follow the new classes (WSPasswordCallback) and changed the package etc.

        Attachments

        1. soap-request.xml
          6 kB
          Sumeet Mahajan

          Activity

            People

            • Assignee:
              coheigea Colm O hEigeartaigh
              Reporter:
              sumeet80 Sumeet Mahajan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: