Closed (won't fix)
Project:
OAuth2 Server
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
13 Jul 2014 at 13:02 UTC
Updated:
25 Sep 2014 at 12:30 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dashohoxha commentedThis patch tries to improve error handeling.
Comment #2
bojanz commentedThese errors are thrown only from the oauth2 endpoints, which are primarily meant to be consumed by code.
By making a Drupal page render around the error, you've essentially made it unparsable, breaking the tests and making our behavior completely different from the library one.
Hence, "won't fix".
An end-user would see an error directly only in cases of misconfiguration, which is rare enough to be irrelevant.
Comment #3
dashohoxha commentedI agree with your argument, and it could break some existing code.
But at least you could give a chance to the application to do something different in case of certain errors:
This does not break the tests or the existing code, but still gives a chance to applications to display more informative messages in certain cases (by implementing hook_oauth2_server_error).
One case like this is when redirect_uri is wrong (for example client has moved to another location). Since the server cannot redirect, the error message will never reach the client application.
Comment #4
dashohoxha commentedHere is an updated patch.
However this feature is not so important, so you can close it again with "won't fix".
Comment #5
dashohoxha commented