-
Notifications
You must be signed in to change notification settings - Fork 92
add oauth2 response format #72
add oauth2 response format #72
Conversation
*/ | ||
public function setApiProblemErrorResponse($apiProblemErrorResponse) | ||
{ | ||
$this->apiProblemErrorResponse = $apiProblemErrorResponse; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Convert incoming variable to (bool)
@ezimuel Can you please review? Having this option for reporting seems like a good interoperability move. |
hey, what about this feature? |
$parameters['error'] | ||
) | ||
); | ||
return $this->getApiProblemResponse($response); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this be $this->getErrorResponse($response);
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Never mind; this particular problem is not handled by the oauth2 spec, so it can and should be in a different format.
…ntent_type add oauth2 response format Conflicts: config/module.config.php
Merged to develop for release with 1.1. |
resolve #71
add oauth2 response format configurable, default api problem is set for BC.
fix bug with lack of mapping AUTHORIZATION header