diff --git a/lib/Commands/ListClients.php b/lib/Commands/ListClients.php index 06236cd..f595481 100644 --- a/lib/Commands/ListClients.php +++ b/lib/Commands/ListClients.php @@ -41,7 +41,7 @@ public function __construct(ClientMapper $clientMapper) { protected function configure() { parent::configure(); $this - ->setName('oauth2:list') + ->setName('oauth2:list-clients') ->setDescription('Lists OAuth2 clients'); } @@ -58,13 +58,12 @@ protected function execute(InputInterface $input, OutputInterface $output) { /** @var \OCA\OAuth2\Db\Client $client */ foreach ($clients as $client) { $clientsOutput[$client->getName()] = [ - 'id' => $client->getId(), 'name' => $client->getName(), - 'redirectUri' => $client->getRedirectUri(), - 'identifier' => $client->getIdentifier(), - 'secret' => $client->getSecret(), - 'subdomainsAllowed' => $client->getAllowSubdomains() === true ? 'yes' : 'no', - 'trusted' => $client->getTrusted() === true ? 'yes' : 'no', + 'redirect-url' => $client->getRedirectUri(), + 'client-id' => $client->getIdentifier(), + 'client-secret' => $client->getSecret(), + 'allow-sub-domains' => $client->getAllowSubdomains(), + 'trusted' => $client->getTrusted(), ]; } parent::writeArrayInOutputFormat($input, $output, $clientsOutput, self::DEFAULT_OUTPUT_PREFIX, true);