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

AuthorizationPolicy: AuthorizationType="Bearer" has no effect

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.2.3
    • Fix Version/s: 3.1.16, 3.2.4
    • Component/s: Core, Transports
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Adding an AuthorizationPolicy object with AuthorizationType set to "Bearer" to the Client HTTPConduit object has no effect.

      No "Authorization: Bearer xxx" header is added to the cxf request.

      Workaround: add the Authorization header directly:

      client.getRequestContext().put(Message.PROTOCOL_HEADERS, authorizationHeader);

      and authorizationHeader containing the desired header/value.

       

        Attachments

          Activity

            People

            • Assignee:
              coheigea Colm O hEigeartaigh
              Reporter:
              d.temme Dietmar Temme
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: