Bearer token now correctly base64 decoding

This commit is contained in:
Nick Jackson 2013-01-08 15:52:17 +00:00
parent b4e8c27618
commit 608bcb767b

View File

@ -148,7 +148,7 @@ class Server
if (isset($headers['Authorization'])) { if (isset($headers['Authorization'])) {
$rawToken = trim(str_replace('Bearer', '', $headers['Authorization'])); $rawToken = base64_decode(str_replace('Bearer ', '', trim($headers['Authorization'])));
if ( ! empty($rawToken)) { if ( ! empty($rawToken)) {
$accessToken = $rawToken; $accessToken = $rawToken;
@ -250,4 +250,4 @@ class Server
return call_user_func_array(array($this->_db, $method), $params); return call_user_func_array(array($this->_db, $method), $params);
} }
} }