From c1612c522cb3c764ad4fea474e8ee2ea1db4e95f Mon Sep 17 00:00:00 2001 From: James Read Date: Sat, 6 Aug 2022 15:11:13 +0100 Subject: [PATCH] Reverting changes to unit tests Removing the key id from when only one secret/algorithm is supplied --- tests/JwtAuthenticationTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/JwtAuthenticationTest.php b/tests/JwtAuthenticationTest.php index 0c42fed..9564968 100644 --- a/tests/JwtAuthenticationTest.php +++ b/tests/JwtAuthenticationTest.php @@ -108,7 +108,7 @@ public function testShouldReturn200WithTokenFromHeader() $collection = new MiddlewareCollection([ new JwtAuthentication([ "secret" => "supersecretkeyyoushouldnotcommittogithub", - "algorithm" => ['acme' => 'HS256'], + "algorithm" => ['HS256'], "header" => "X-Token" ]) ]); @@ -134,7 +134,7 @@ public function testShouldReturn200WithTokenFromHeaderWithCustomRegexp() $collection = new MiddlewareCollection([ new JwtAuthentication([ "secret" => "supersecretkeyyoushouldnotcommittogithub", - "algorithm" => ['acme' => 'HS256'], + "algorithm" => ['HS256'], "header" => "X-Token", "regexp" => "/(.*)/" ]) @@ -161,7 +161,7 @@ public function testShouldReturn200WithTokenFromCookie() $collection = new MiddlewareCollection([ new JwtAuthentication([ "secret" => "supersecretkeyyoushouldnotcommittogithub", - "algorithm" => ['acme' => 'HS256'], + "algorithm" => ['HS256'], "cookie" => "nekot", ]) ]); @@ -187,7 +187,7 @@ public function testShouldReturn200WithTokenFromBearerCookie() $collection = new MiddlewareCollection([ new JwtAuthentication([ "secret" => "supersecretkeyyoushouldnotcommittogithub", - "algorithm" => ['acme' => 'HS256'], + "algorithm" => ['HS256'], "cookie" => "nekot", ]) ]);