Skip to content

Commit 80ee0f9

Browse files
committed
straight from GET or POST
1 parent e93cac6 commit 80ee0f9

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

solid/lib/Controller/ServerController.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,12 @@ private function getKeys() {
104104
}
105105

106106
private function createAuthServerConfig() {
107-
$request = \Laminas\Diactoros\ServerRequestFactory::fromGlobals($_SERVER, $_GET, $_POST, $_COOKIE, $_FILES);
108-
$clientId = $request->getParsedBody()['client_id'];
107+
$clientId = null;
108+
if (isset($_GET['client_id'])) {
109+
$clientId = $_GET['client_id'];
110+
} else if (isset($_POST['client_id'])) {
111+
$clientId = $_POST['client_id'];
112+
}
109113
$client = $this->getClient($clientId);
110114
$keys = $this->getKeys();
111115
try {

0 commit comments

Comments
 (0)