diff --git a/src/Oauth2/Resource/Server.php b/src/Oauth2/Resource/Server.php index 64a29d6e..9b45bc41 100644 --- a/src/Oauth2/Resource/Server.php +++ b/src/Oauth2/Resource/Server.php @@ -148,7 +148,7 @@ class Server if (isset($headers['Authorization'])) { - $rawToken = trim(str_replace('Bearer', '', $headers['Authorization'])); + $rawToken = base64_decode(str_replace('Bearer ', '', trim($headers['Authorization']))); if ( ! empty($rawToken)) { $accessToken = $rawToken; @@ -250,4 +250,4 @@ class Server return call_user_func_array(array($this->_db, $method), $params); } -} \ No newline at end of file +}