Update src/Module/OAuth/Token.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
6b3476409a
commit
a256f18159
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ class Token extends BaseApi
|
||||||
$authorization = $_SERVER['REDIRECT_REMOTE_USER'] ?? '';
|
$authorization = $_SERVER['REDIRECT_REMOTE_USER'] ?? '';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($request['client_id']) && !empty($authorization) && (substr($authorization, 0, 6) == 'Basic ')) {
|
if (empty($request['client_id']) && substr($authorization, 0, 6) == 'Basic ') {
|
||||||
$datapair = explode(':', base64_decode(trim(substr($authorization, 6))));
|
$datapair = explode(':', base64_decode(trim(substr($authorization, 6))));
|
||||||
if (count($datapair) == 2) {
|
if (count($datapair) == 2) {
|
||||||
$request['client_id'] = $datapair[0];
|
$request['client_id'] = $datapair[0];
|
||||||
|
|
Loading…
Reference in a new issue