diff --git a/src/OAuth2/ResourceServer.php b/src/OAuth2/ResourceServer.php index 05359de7..195f98ed 100644 --- a/src/OAuth2/ResourceServer.php +++ b/src/OAuth2/ResourceServer.php @@ -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);