Skip to content

Commit

Permalink
Removed duplicate check on jwks_uri
Browse files Browse the repository at this point in the history
  • Loading branch information
ricklambrechts committed May 17, 2023
1 parent 8ec206b commit ce52df0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/OpenIDConnectClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down

0 comments on commit ce52df0

Please # to comment.