From bb4ec0c72aba5386da35dbf68f6a3170f0b1b888 Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Thu, 20 Aug 2026 17:00:02 +0200 Subject: [PATCH] fix(rector): Apply rector strict Signed-off-by: Carl Schwan --- apps/oauth2/lib/Service/ClientService.php | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/oauth2/lib/Service/ClientService.php b/apps/oauth2/lib/Service/ClientService.php index a04a55c897e9a..4270ec7495966 100644 --- a/apps/oauth2/lib/Service/ClientService.php +++ b/apps/oauth2/lib/Service/ClientService.php @@ -51,6 +51,7 @@ public function addClient(string $name, string $redirectUri): array { $client = new Client(); $client->name = $name; $client->redirectUri = $redirectUri; + $secret = $this->secureRandom->generate(64, self::validChars); $hashedSecret = bin2hex($this->crypto->calculateHMAC($secret)); $client->secret = $hashedSecret;