Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

add oauth2 response format #72

Conversation

michalkopacz
Copy link

resolve #71

add oauth2 response format configurable, default api problem is set for BC.
fix bug with lack of mapping AUTHORIZATION header

*/
public function setApiProblemErrorResponse($apiProblemErrorResponse)
{
$this->apiProblemErrorResponse = $apiProblemErrorResponse;
Copy link
Contributor

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)

@weierophinney
Copy link
Member

@ezimuel Can you please review? Having this option for reporting seems like a good interoperability move.

@michalkopacz
Copy link
Author

hey, what about this feature?

$parameters['error']
)
);
return $this->getApiProblemResponse($response);
Copy link
Member

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);?

Copy link
Member

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.

@weierophinney weierophinney merged commit 0172f2f into zfcampus:develop Mar 30, 2015
weierophinney added a commit that referenced this pull request Mar 30, 2015
…ntent_type

add oauth2 response format

Conflicts:
	config/module.config.php
weierophinney added a commit that referenced this pull request Mar 30, 2015
@weierophinney weierophinney added this to the 1.1.0 milestone Mar 30, 2015
@weierophinney
Copy link
Member

Merged to develop for release with 1.1.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants