Skip to content

Commit f8fb8fa

Browse files
committed
Get client_id from either GET or POST
1 parent b5274fa commit f8fb8fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

solid/lib/Controller/ServerController.php

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

106106
private function createAuthServerConfig() {
107-
$clientId = isset($_GET['client_id']) ? $_GET['client_id'] : null;
107+
$request = \Laminas\Diactoros\ServerRequestFactory::fromGlobals($_SERVER, $_GET, $_POST, $_COOKIE, $_FILES);
108+
$clientId = $request->getParsedBody()['client_id'];
108109
$client = $this->getClient($clientId);
109110
$keys = $this->getKeys();
110111
try {

0 commit comments

Comments
 (0)