Fixed missing argument in basic auth.
This commit is contained in:
parent
868a06f036
commit
b127da74f0
1 changed files with 4 additions and 1 deletions
|
@ -58,7 +58,10 @@ class OAuth2Routes extends RouteHandler {
|
|||
$content = $request->getContent();
|
||||
|
||||
if(!$authz->hasAuthed())
|
||||
$authz->attemptBasicAppAuth((string)$content->getParam('client_id'));
|
||||
$authz->attemptBasicAppAuth(
|
||||
(string)filter_input(INPUT_SERVER, 'REMOTE_ADDR'),
|
||||
(string)$content->getParam('client_id')
|
||||
);
|
||||
|
||||
if(!$authz->isApp())
|
||||
return self::filter($response, [
|
||||
|
|
Loading…
Reference in a new issue