Fix on Auth token check
Change-Id: I7328c6d46394d668f5130e433330c9e7b20b2be0
This commit is contained in:
parent
83c0df86f8
commit
28c34daa3f
|
@ -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, '');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue