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

Inflexible jwt audience restriction validation

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.7
    • 3.1.9, 3.2.0
    • JAX-RS Security
    • None
    • JVM 1.7, Ubuntu 14

    • Unknown
    • Important

    Description

      JwtUtils.validateJwtAudienceRestriction checks the audience url matches the current request url (from the context). This works only during development but is most likely to fail because the actual url of the resource server may be behind the proxy or load balancer etc. e.g. The actual request is sent to mycomany.com/oauth and the requester sends this string in the audience parameter but the server actually serving the request may have a url like localhost:8080/oauth. So the match fails. And thanks to the static util function, it can not be customized easily.

      Attachments

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            shaleen Shaleen Mishra
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: