mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-29 16:30:44 +05:30
Removed validateAccessToken from abstract response type
This commit is contained in:
parent
e946c1e106
commit
472ec68bbe
@ -73,16 +73,4 @@ abstract class AbstractResponseType implements ResponseTypeInterface
|
|||||||
{
|
{
|
||||||
$this->refreshToken = $refreshToken;
|
$this->refreshToken = $refreshToken;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* {@inheritdoc}
|
|
||||||
*/
|
|
||||||
public function validateAccessToken(ServerRequestInterface $request)
|
|
||||||
{
|
|
||||||
if ($request->hasHeader('authorization') === false) {
|
|
||||||
throw OAuthServerException::accessDenied('Missing "Authorization" header');
|
|
||||||
}
|
|
||||||
|
|
||||||
return $request;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user