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

Cannot report customized error back from loginHandler to ResourceOwnerGrantHandler

    XMLWordPrintableJSON

    Details

    • Estimated Complexity:
      Unknown

      Description

      You can supply loginHander, like MylongHandler to GrantHandler (like ResourceOwnerGrantHandler), but there is no way to report back errors.
      All customized error message will be dropped by those lines.

      try

      { subject = loginHandler.createSubject(ownerName, ownerPassword); }

      catch (Exception ex)

      { throw new OAuthServiceException(OAuthConstants.INVALID_REQUEST); }

      My suggestion would be to follow the AccessTokenService's example, which can support writeCustomErrors by setting the property and report back OauthServiceException(CustomerFault()).

        Attachments

          Activity

            People

            • Assignee:
              sergey_beryozkin Sergey Beryozkin
              Reporter:
              jasonw_nz Jason Wang
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: