Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-5825

Enhance org.apache.cxf.rs.security.oauth2.utils.AuthorizationUtils

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • fuse-7.0
    • jboss-fuse-6.2.1
    • CXF
    • % %

      Enhance the throwAuthorizationFailure() method within the org.apache.cxf.rs.security.oauth2.utils.AuthorizationUtils class to add a descriptive message to the corresponding 401 response's message payload. The message should provide the reason for the 401 response code. For example, "expired token".

      Relative code snippet:

      https://github.com/apache/cxf/blob/3.0.x-fixes/rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/AuthorizationUtils.java#L93-L114

            yfang@redhat.com Freeman(Yue) Fang
            Argo_Integration Travis North (Inactive)
            Viliam Kasala Viliam Kasala
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: