Skip to content

Commit 5771464

Browse files
committed
Add exception message
WE2-1028 Signed-off-by: Sven Mitt <[email protected]>
1 parent 99f3361 commit 5771464

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/validator/AuthTokenSignatureValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function validate(string $algorithm, string $signature, $publicKey, strin
8484
if (in_array($algorithm, self::RSASSA_PSS_ALGORITHMS)) {
8585
$publicKey = openssl_get_publickey($publicKey->withPadding(RSA::SIGNATURE_PSS)->toString('PSS'));
8686
if (!$publicKey) {
87-
throw new AuthTokenParseException();
87+
throw new AuthTokenParseException('Could not use PSS padding for RSASSA-PSS algorithm');
8888
}
8989
}
9090

0 commit comments

Comments
 (0)