From 472ec68bbe026a017eb7a775c6b67c3f2b5c119d Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Tue, 15 Mar 2016 21:20:59 +0000 Subject: [PATCH] Removed validateAccessToken from abstract response type --- src/ResponseTypes/AbstractResponseType.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/ResponseTypes/AbstractResponseType.php b/src/ResponseTypes/AbstractResponseType.php index b0e8dfc0..847f8ecf 100644 --- a/src/ResponseTypes/AbstractResponseType.php +++ b/src/ResponseTypes/AbstractResponseType.php @@ -73,16 +73,4 @@ abstract class AbstractResponseType implements ResponseTypeInterface { $this->refreshToken = $refreshToken; } - - /** - * {@inheritdoc} - */ - public function validateAccessToken(ServerRequestInterface $request) - { - if ($request->hasHeader('authorization') === false) { - throw OAuthServerException::accessDenied('Missing "Authorization" header'); - } - - return $request; - } }