Fix on Auth token check

Change-Id: I7328c6d46394d668f5130e433330c9e7b20b2be0
This commit is contained in:
Sebastian Marcet 2016-01-22 23:30:18 -03:00
parent 83c0df86f8
commit 28c34daa3f
1 changed files with 0 additions and 7 deletions

View File

@ -152,13 +152,6 @@ final class OAuth2BearerAccessTokenRequestValidator {
{
// http://tools.ietf.org/html/rfc6750#section-2- 2
// if access token is not on authorization header check on POST/GET params
if($request->headers->get('content-type') !== HttpContentType::Form)
throw new OAuth2ResourceServerException
(
400,
OAuth2Protocol::OAuth2Protocol_Error_InvalidRequest,
'invalid content-type'
);
$access_token_value = Input::get(OAuth2Protocol::OAuth2Protocol_AccessToken, '');
}