diff --git a/composer.json b/composer.json index 3cf8ccd3..9d573f78 100644 --- a/composer.json +++ b/composer.json @@ -53,7 +53,8 @@ }, "patches": { "madwizard/webauthn": { - "Fix interoperability with imposter": "patches/webauthn.patch" + "Fix interoperability with imposter": "patches/webauthn.patch", + "Fix client extension verification (GH-295)": "patches/client-extensions.patch" } } }, diff --git a/composer.lock b/composer.lock index 90deb69e..fa2ae780 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "274ac22b435a8f98fdd5990cf4879b24", + "content-hash": "79ed21c6ffaf477ae7e42cdf7a88df4e", "packages": [ { "name": "composer/installers", diff --git a/patches/client-extensions.patch b/patches/client-extensions.patch new file mode 100644 index 00000000..e917ecec --- /dev/null +++ b/patches/client-extensions.patch @@ -0,0 +1,11 @@ +--- src/Server/AbstractVerifier.orig.php 2022-10-26 07:04:02.916968205 +0300 ++++ src/Server/AbstractVerifier.php 2022-10-26 07:10:31.212763949 +0300 +@@ -91,7 +91,7 @@ + foreach ($results as $id => $result) { + $input = $inputs[$id] ?? null; + if ($input === null) { +- throw new VerificationException(sprintf('Extension "%s" is present in clientExtensionResults but was not used in the input.', $id)); ++ continue; + } + $extension = $this->extensionRegistry->getExtension($id); +