From e5a48c929bd825f4f51e7a458502f8f4ab7699a3 Mon Sep 17 00:00:00 2001 From: Jason Grimes Date: Wed, 5 Jun 2013 23:59:29 -0400 Subject: [PATCH] Make determineAccessToken() public in order to check if an access token was sent before checking its validity. --- src/League/OAuth2/Server/Resource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/League/OAuth2/Server/Resource.php b/src/League/OAuth2/Server/Resource.php index 49f149ee..bc02b961 100644 --- a/src/League/OAuth2/Server/Resource.php +++ b/src/League/OAuth2/Server/Resource.php @@ -242,7 +242,7 @@ class Resource * @throws Exception\MissingAccessTokenException Thrown if there is no access token presented * @return string */ - protected function determineAccessToken($headersOnly = false) + public function determineAccessToken($headersOnly = false) { if ($header = $this->getRequest()->header('Authorization')) { // Check for special case, because cURL sometimes does an