clientMapper->getClients(); $result = []; foreach ($clients as $client) { try { $result[] = [ 'id' => $client->getId(), 'name' => $client->getName(), 'redirectUri' => $client->getRedirectUri(), 'clientId' => $client->getClientIdentifier(), 'clientSecret' => '', ]; } catch (\Exception $e) { $this->logger->error('[Settings] OAuth client secret decryption error', ['exception' => $e]); } } $this->initialState->provideInitialState('clients', $result); $this->initialState->provideInitialState('oauth2-doc-link', $this->urlGenerator->linkToDocs('admin-oauth2')); return new TemplateResponse( 'oauth2', 'admin', [], '' ); } public function getSection(): string { return 'security'; } public function getPriority(): int { return 100; } }