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

AuthorizationPolicy: AuthorizationType="Bearer" has no effect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.3
    • 3.1.16, 3.2.4
    • Core, Transports
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: