Skip to content

Commit 4b885c8

Browse files
committed
fetch subject/user_id from the code information
1 parent 470dda5 commit 4b885c8

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Controller/TokenController.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ final public function __invoke(ServerRequestInterface $request, array $args): Re
3030
$response = new \Laminas\Diactoros\Response();
3131
$server = new \Pdsinterop\Solid\Auth\Server($this->authServerFactory, $this->authServerConfig, $response);
3232
$response = $server->respondToAccessTokenRequest($request);
33-
$response = $this->tokenGenerator->addIdTokenToResponse($response, $clientId, $this->getProfilePage(), $_SESSION['nonce'], $this->config->getPrivateKey());
33+
34+
$codeInfo = $this->tokenGenerator->getCodeInfo();
35+
$response = $this->tokenGenerator->addIdTokenToResponse($response, $clientId, $codeInfo['user_id'], $_SESSION['nonce'], $this->config->getPrivateKey());
3436

3537
return $response;
3638
}

0 commit comments

Comments
 (0)