From 38e8602e417cefc88c3e51dc0ea4ac7dec232d68 Mon Sep 17 00:00:00 2001 From: Piers Gillingham Date: Thu, 21 Sep 2023 16:48:19 +0900 Subject: [PATCH] =?UTF-8?q?=E8=A6=81=E3=82=89=E3=81=AA=E3=81=84=E5=BC=95?= =?UTF-8?q?=E6=95=B0=E5=90=8D$client=E3=81=AF=E7=89=B9=E5=88=A5=E5=BC=95?= =?UTF-8?q?=E6=95=B0=E5=90=8D=EF=BC=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Tests/Web/ApiControllerTest.php | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/Tests/Web/ApiControllerTest.php b/Tests/Web/ApiControllerTest.php index 18553f9..6c8e527 100644 --- a/Tests/Web/ApiControllerTest.php +++ b/Tests/Web/ApiControllerTest.php @@ -96,7 +96,7 @@ public function permissionProvider() /** * @dataProvider logAndInvalidate0Auth2SessionProvider */ - public function testLogoutAndInvalidateOAuth2Session(string $identifier, array $client, array $post_login_data, array $post_logout_data) + public function testLogoutAndInvalidateOAuth2Session(string $identifier, array $post_login_data, array $post_logout_data) { $this->deleteAllRows(['oauth2_refresh_token', 'oauth2_access_token']); @@ -157,20 +157,10 @@ public function logAndInvalidate0Auth2SessionProvider(): array { $clientInfo = [ 'test_active_user@example.com' => [ - 'client' => [ - 'identifier' => hash('md5', random_bytes(16)), - 'secret' => hash('sha512', random_bytes(32)), - 'redirect_uri' => 'http://localhost:8080' . $this->generateUrl('homepage'), - ], 'identifier' => hash('md5', random_bytes(16)), 'expiry' => new \DateTimeImmutable('+1 days', new \DateTimeZone('Asia/Tokyo')), ], 'inactive_user@example.com' => [ - 'client' => [ - 'identifier' => hash('md5', random_bytes(16)), - 'secret' => hash('sha512', random_bytes(32)), - 'redirect_uri' => 'http://localhost:8080' . $this->generateUrl('homepage'), - ], 'identifier' => hash('md5', random_bytes(16)), 'secret' => hash('sha512', random_bytes(32)), 'expiry' => new \DateTimeImmutable('-1 days', new \DateTimeZone('Asia/Tokyo')), @@ -180,7 +170,6 @@ public function logAndInvalidate0Auth2SessionProvider(): array return [ [ 'identifier' => 'test_active_user@example.com', - 'client' => $clientInfo['test_active_user@example.com']['client'], 'post_login_data' => [ 'oauth2_access_token' => [ 'user_identifier' => 'test_active_user@example.com', @@ -213,7 +202,6 @@ public function logAndInvalidate0Auth2SessionProvider(): array ], ], [ 'identifier' => 'inactive_user@example.com', - 'client' => $clientInfo['inactive_user@example.com']['client'], 'post_login_data' => [ 'oauth2_access_token' => [ 'user_identifier' => 'inactive_user@example.com',