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

[OAuth1.0] allow to set response codes when throwing exception from OAuthDataProvider implementation.

    XMLWordPrintableJSON

    Details

    • Type: Wish
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.1
    • Fix Version/s: 2.6.2, 2.7
    • Component/s: JAX-RS Security
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Currently OAuthDataProvider interface support throwing OAuthServiceException. But handlers (request token, authorize, access token) catch this exception and always return response status 500.

      I think it will be better to allow setting custom response statuses and add proper handling for this exception type.

        Attachments

          Activity

            People

            • Assignee:
              sergey_beryozkin Sergey Beryozkin
              Reporter:
              evgeni_kisel Evgeni Kisel
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: