mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-05-31 14:12:07 +05:30
Bearer token now correctly base64 decoding
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user