Skip to content

Commit b4667d4

Browse files
committed
allow empty nonce
1 parent 355f9a9 commit b4667d4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

solid/lib/Controller/ServerController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ public function token() {
257257
// FIXME: not sure if decoding this here is the way to go.
258258
// FIXME: because this is a public page, the nonce from the session is not available here.
259259
$codeInfo = $this->tokenGenerator->getCodeInfo($code);
260-
$response = $this->tokenGenerator->addIdTokenToResponse($response, $clientId, $codeInfo['user_id'], $_SESSION['nonce'], $this->config->getPrivateKey(), $dpopKey);
260+
$response = $this->tokenGenerator->addIdTokenToResponse($response, $clientId, $codeInfo['user_id'], ($_SESSION['nonce'] ?? ''), $this->config->getPrivateKey(), $dpopKey);
261261

262262
return $this->respond($response); // ->addHeader('Access-Control-Allow-Origin', '*');
263263
}

0 commit comments

Comments
 (0)