summaryrefslogtreecommitdiffstats
path: root/apps/oauth2/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2021-12-01 22:17:19 +0100
committerJoas Schilling <coding@schilljs.com>2021-12-01 22:17:19 +0100
commitc6ae53096c36e6a475467eaeb6df00ac8d38e4b2 (patch)
tree80deaa0d05a26564937a03d430197d1f6a57d30b /apps/oauth2/lib
parent9f001790379829096939015e790f0a35b6a38787 (diff)
downloadnextcloud-server-c6ae53096c36e6a475467eaeb6df00ac8d38e4b2.tar.gz
nextcloud-server-c6ae53096c36e6a475467eaeb6df00ac8d38e4b2.zip
More test fixing
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/oauth2/lib')
-rw-r--r--apps/oauth2/lib/Controller/SettingsController.php14
1 files changed, 0 insertions, 14 deletions
diff --git a/apps/oauth2/lib/Controller/SettingsController.php b/apps/oauth2/lib/Controller/SettingsController.php
index 28500128629..046e6d77041 100644
--- a/apps/oauth2/lib/Controller/SettingsController.php
+++ b/apps/oauth2/lib/Controller/SettingsController.php
@@ -30,7 +30,6 @@ declare(strict_types=1);
*/
namespace OCA\OAuth2\Controller;
-use OC\Authentication\Token\DefaultTokenMapper;
use OCA\OAuth2\Db\AccessTokenMapper;
use OCA\OAuth2\Db\Client;
use OCA\OAuth2\Db\ClientMapper;
@@ -48,34 +47,22 @@ class SettingsController extends Controller {
private $secureRandom;
/** @var AccessTokenMapper */
private $accessTokenMapper;
- /** @var DefaultTokenMapper */
- private $defaultTokenMapper;
/** @var IL10N */
private $l;
public const validChars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
- /**
- * @param string $appName
- * @param IRequest $request
- * @param ClientMapper $clientMapper
- * @param ISecureRandom $secureRandom
- * @param AccessTokenMapper $accessTokenMapper
- * @param DefaultTokenMapper $defaultTokenMapper
- */
public function __construct(string $appName,
IRequest $request,
ClientMapper $clientMapper,
ISecureRandom $secureRandom,
AccessTokenMapper $accessTokenMapper,
- DefaultTokenMapper $defaultTokenMapper,
IL10N $l
) {
parent::__construct($appName, $request);
$this->secureRandom = $secureRandom;
$this->clientMapper = $clientMapper;
$this->accessTokenMapper = $accessTokenMapper;
- $this->defaultTokenMapper = $defaultTokenMapper;
$this->l = $l;
}
@@ -106,7 +93,6 @@ class SettingsController extends Controller {
public function deleteClient(int $id): JSONResponse {
$client = $this->clientMapper->getByUid($id);
$this->accessTokenMapper->deleteByClientId($id);
- $this->defaultTokenMapper->deleteByName($client->getName());
$this->clientMapper->delete($client);
return new JSONResponse([]);
}