Skip to content

Commit e6906c6

Browse files
committed
rename decrypt call
1 parent 9dbf457 commit e6906c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

solid/lib/Controller/ServerController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ public function token() {
309309
break;
310310
case "refresh_token":
311311
$refreshToken = $request->getParsedBody()['refresh_token'];
312-
$tokenInfo = $this->tokenGenerator->getRefreshTokenInfo($refreshToken);
312+
$tokenInfo = $this->tokenGenerator->getCodeInfo($refreshToken); // FIXME: getCodeInfo should be named 'decrypt' or 'getInfo'?
313313
$userId = $tokenInfo['user_id'];
314314
break;
315315
default:
@@ -385,7 +385,7 @@ public function register() {
385385
// ($request->getRawPathInfo() !== '/apps/oauth2/api/v1/token') &&
386386
// ($request->getRawPathInfo() !== '/apps/solid/token')
387387
*/
388-
// 'client_secret' => $clientData['client_secret'], // FIXME: Returning this means we need to patch Nextcloud to accept tokens on calls to
388+
'client_secret' => $clientData['client_secret'], // FIXME: Returning this means we need to patch Nextcloud to accept tokens on calls to
389389

390390
'registration_client_uri' => $this->urlGenerator->getAbsoluteURL($this->urlGenerator->linkToRoute("solid.server.registeredClient", array("clientId" => $clientData['client_id']))),
391391
'client_id_issued_at' => $clientData['client_id_issued_at'],

0 commit comments

Comments
 (0)