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

Wrong error code for non existing client's

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0-milestone1, 2.7.8, 3.0.0-milestone2
    • 3.0.0-milestone2
    • JAX-RS Security
    • None
    • Unknown

    Description

      Currently when I use non existing client_id on call I get response:

      Response Code: 400

      {
        "error": "invalid_request",
        "error_description": "Client ID is invalid",
        "error_uri": null
      }
      

      But by RFC it should be returned error=invalid_client
      http://tools.ietf.org/html/rfc6749#section-5.2

      Error is generated in that method:
      org.apache.cxf.rs.security.oauth2.services.AccessTokenService.getClient(String)

      Attachments

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            kendzi Tomasz Kędziora
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: