Recently I try to use REST and try to POST /oauth/token
Well it is worked , but I have a problem when I try to put wrong user/password in order to raise ‘error response’.
According to Swagger UI , when something wrong happen with user/password , the response from server should
“401 Unauthorized”, but instead I receive “Unexpected response status: 400”
Hi,
According to the Oauth2 spec, when there is invalid data in the request body, the response with code 400 (Bad request) is returned. The response with code 401 (Unauthorized) is returned when basic authentication for the endpoint failed. We’ll update the swagger documentation