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

getSignatureAlgorithm ignores alg value set within JWS header

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 3.5.8, 3.6.3, 4.0.4
    • None
    • JAX-RS Security
    • None
    • Unknown

    Description

      The `getSignatureAlgorithm` method from the JwsUtils ignore any value set within the "alg" JWS header, instead the code looks for a static JAX-RS property (rs.security.signature.algorithm) or tries to detect the algorithm based on the selected alias in a keystore file. This makes it more complicated to configure a CXF provider and limits the token validation to a single specified algorythm. Using the header value instead would avoid such additional configuration properties and make the solution more dynamic.

      Attachments

        Activity

          People

            coheigea Colm O hEigeartaigh
            jan4talend Jan Bernhardt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: