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'])) {
$rawToken = trim(str_replace('Bearer', '', $headers['Authorization']));
$rawToken = base64_decode(str_replace('Bearer ', '', trim($headers['Authorization'])));
if ( ! empty($rawToken)) {
$accessToken = $rawToken;