Uploaded image for project: 'Apache Oltu'
  1. Apache Oltu
  2. OLTU-218

[RFC 6750] The resource should respond with 401 when the access token is invalid

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Invalid
    • oauth2-1.0.2
    • None
    • oauth2-resourceserver
    • None

    Description

      According to RFC 6750 - 3.1. Error Codes, the following error should SHOULD respond with the HTTP 401 (Unauthorized) status code, I think. What do you think?

      Request Response Status Code Actual Expected Response Body Actual Expected
      Invalid token 400 401 {"WWW-Authenticate":"Bearer error=\"invalid_token\""} {"WWW-Authenticate":"Bearer error=\"invalid_token\""}

      Thanks

      Attachments

        Activity

          People

            Unassigned Unassigned
            k.kato Keisuke Kato
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: