Skip to content

Commit

Permalink
remove client_secret for now
Browse files Browse the repository at this point in the history
  • Loading branch information
ylebre committed Feb 14, 2025
1 parent bb2ceeb commit 6d5bfcd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion solid/lib/Controller/ServerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,14 @@ public function register() {
$clientData = $this->config->saveClientRegistration($origin, $clientData);
$registration = array(
'client_id' => $clientData['client_id'],
'client_secret' => $clientData['client_secret'],
/*
FIXME: returning client_secret will trigger calls with basic auth to us. To get this to work, we need this patch:
// File /var/www/vhosts/solid-nextcloud/site/www/lib/base.php not changed so no update needed
// ($request->getRawPathInfo() !== '/apps/oauth2/api/v1/token') &&
// ($request->getRawPathInfo() !== '/apps/solid/token')
*/
// 'client_secret' => $clientData['client_secret'], // FIXME: Returning this means we need to patch Nextcloud to accept tokens on calls to

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

0 comments on commit 6d5bfcd

Please sign in to comment.