simplesamlphp-module-webauthn icon indicating copy to clipboard operation
simplesamlphp-module-webauthn copied to clipboard

Cannot Register a device on SimpleSAMLphp-2.1

Open libregeek opened this issue 2 years ago • 5 comments

Installed SimpleSAMLphp-2.1 on a PHP-8.1 environment and installed Webauthn module using composer. Webauthn is configured as a process filter for two-factor authentication.

SimpleSAMLphp is redirected to the Webauthn registration page after successful authentication. But after validating the device the following error occurred:

SimpleSAML\Error\Error: UNHANDLEDEXCEPTION
Backtrace:
2 src/SimpleSAML/Error/ExceptionHandler.php:35 (SimpleSAML\Error\ExceptionHandler::customExceptionHandler)
1 vendor/symfony/error-handler/ErrorHandler.php:541 (Symfony\Component\ErrorHandler\ErrorHandler::handleException)
0 [builtin] (N/A)
Caused by: Symfony\Component\ErrorHandler\Error\ClassNotFoundError: Attempted to load class "TagObjectManager" from namespace "CBOR\Tag".
Did you forget a "use" statement for another namespace?
Backtrace:
7 modules/webauthn/src/WebAuthn/WebAuthnAbstractEvent.php:435 (SimpleSAML\Module\webauthn\WebAuthn\WebAuthnAbstractEvent::cborDecode)
6 modules/webauthn/src/WebAuthn/WebAuthnRegistrationEvent.php:79 (SimpleSAML\Module\webauthn\WebAuthn\WebAuthnRegistrationEvent::__construct)
5 modules/webauthn/src/Controller/RegProcess.php:122 (SimpleSAML\Module\webauthn\Controller\RegProcess::main)
4 vendor/symfony/http-kernel/HttpKernel.php:163 (Symfony\Component\HttpKernel\HttpKernel::handleRaw)
3 vendor/symfony/http-kernel/HttpKernel.php:75 (Symfony\Component\HttpKernel\HttpKernel::handle)
2 vendor/symfony/http-kernel/Kernel.php:202 (Symfony\Component\HttpKernel\Kernel::handle)
1 src/SimpleSAML/Module.php:234 (SimpleSAML\Module::process)
0 public/module.php:17 (N/A)

libregeek avatar Nov 08 '23 13:11 libregeek

I have myself not deployed on 2.1 yet (but the module does work on 2.0.6). Any chance you can try with 2.0.x and see if the error is reproducible there?

restena-sw avatar Nov 08 '23 16:11 restena-sw

This error should not happen with v2.1 of this module. It seems as if you have an older version of the module.

tvdijen avatar Nov 08 '23 17:11 tvdijen

I have myself not deployed on 2.1 yet (but the module does work on 2.0.6). Any chance you can try with 2.0.x and see if the error is reproducible there?

@restena-sw I have tried with SSP-2.0 earlier and Webauthn-2.1.1 works fine. However, I wanted to try out the precondition feature in SSP-2.1 to use two MFA plugins. Currently, the environment runs SSP-2.1 and the master branch from Webauthn.

libregeek avatar Nov 09 '23 05:11 libregeek

This error should not happen with v2.1 of this module. It seems as if you have an older version of the module.

I am using the master branch from Github. Perhaps, I missed running the composer. Let me check and get back to you.

libregeek avatar Nov 09 '23 05:11 libregeek

I just tested with master against 2.1.0 (slim build) on PHP 8.1 composer. All worked as expected.

restena-sw avatar Nov 13 '23 09:11 restena-sw