From ce52df0f1ea53d1ebbdc3d133d185bf4409094d5 Mon Sep 17 00:00:00 2001 From: Rick Lambrechts Date: Wed, 17 May 2023 18:27:16 +0200 Subject: [PATCH] Removed duplicate check on jwks_uri --- src/OpenIDConnectClient.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/OpenIDConnectClient.php b/src/OpenIDConnectClient.php index 8081134f..0460ea8f 100644 --- a/src/OpenIDConnectClient.php +++ b/src/OpenIDConnectClient.php @@ -1162,11 +1162,8 @@ public function verifyJWTSignature(string $jwt): bool * @return void * @throws OpenIDConnectClientException */ - public function verifySignatures(string $jwt) + public function verifySignatures(string $jwt): void { - if (!$this->getProviderConfigValue('jwks_uri')) { - throw new OpenIDConnectClientException ('Unable to verify signature due to no jwks_uri being defined'); - } if (!$this->verifyJWTSignature($jwt)) { throw new OpenIDConnectClientException ('Unable to verify signature'); }