From 495c9ec296ba17c18af7c378d42a098f98232fc4 Mon Sep 17 00:00:00 2001 From: aynsix Date: Tue, 3 Mar 2020 12:23:19 +0300 Subject: [PATCH] add client_secret on return --- lib/Alchemy/Phrasea/Command/User/UserApplicationsCommand.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/Alchemy/Phrasea/Command/User/UserApplicationsCommand.php b/lib/Alchemy/Phrasea/Command/User/UserApplicationsCommand.php index cbef2cb103..ef79b178b6 100644 --- a/lib/Alchemy/Phrasea/Command/User/UserApplicationsCommand.php +++ b/lib/Alchemy/Phrasea/Command/User/UserApplicationsCommand.php @@ -246,6 +246,7 @@ class UserApplicationsCommand extends Command $account->getUser()->getId(), $application->getName(), $application->getClientId(), + $application->getClientSecret(), $application->getRedirectUri(), ($token) ? $token->getOauthToken() : '-', $application->isPasswordGranted() ? "true": "false" @@ -253,7 +254,7 @@ class UserApplicationsCommand extends Command } $applicationTable = $this->getHelperSet()->get('table'); - $headers = ['app_id', 'user_id', 'name', 'client_id', 'callback_url', 'generated token', 'grant_password status']; + $headers = ['app_id', 'user_id', 'name', 'client_id', 'client_secret', 'callback_url', 'generated token', 'grant_password status']; if ($jsonformat ) { foreach ($applicationList as $appList) { @@ -312,7 +313,7 @@ class UserApplicationsCommand extends Command $application->isPasswordGranted() ? "true": "false" ]; - $headers = ['client secret', 'client ID', 'Authorize endpoint url', 'Access endpoint', 'generated token', 'grant_password status']; + $headers = ['client_secret', 'client_id', 'Authorize endpoint url', 'Access endpoint', 'generated token', 'grant_password status']; if ($jsonformat ) { $createdAppInfo = array_combine($headers, $applicationCreated); echo json_encode($createdAppInfo);