Removed base64 decoding of token when present in authorization header. Fixes #23

This commit is contained in:
Alex Bilbie 2013-03-22 10:35:42 +00:00
parent fb518715ce
commit 493834fcbf

View File

@ -215,7 +215,7 @@ class ResourceServer
protected function determineAccessToken()
{
if ($header = $this->getRequest()->header('Authorization')) {
$access_token = base64_decode(trim(str_replace('Bearer', '', $header)));
$access_token = trim(str_replace('Bearer', '', $header));
} else {
$method = $this->getRequest()->server('REQUEST_METHOD');
$access_token = $this->getRequest()->{$method}($this->tokenKey);