Make determineAccessToken() public in order to check if an access token was sent before checking its validity.

This commit is contained in:
Jason Grimes 2013-06-05 23:59:29 -04:00
parent 98be9ab252
commit e5a48c929b

View File

@ -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