-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong response when using password grant_type and invalid user credentials #59
Comments
Fixed issue FriendsOfSymfony#59
I think the error here is self::HTTP_UNAUTHORIZED rather than self::HTTP_BAD_REQUEST. I know that's not the change you made, but would appreciate your input on this anyway. The RFC for these two says:
The issue here being that throwing a 400 implies one of the two params is missing from the request, or is of the wrong type. Whereas supplying both username and password - where one of the two turn out to be invalid - should return a 401. I've made the change locally and done some manual tests and everything seems to work properly, but would appreciate a second opinion on this. |
Do you know what's the cause of
? |
Hi,
When you're requesting an access token based of user credentials, you get a wrong response when your credentials are invalid.
Expected result:
Instead, it only returns:
I will create a pull-request if necessary.
Best wishes,
Steffen Brem
The text was updated successfully, but these errors were encountered: