SeToY
Customer
Hello,
I'm getting the following error:
Is there anything that can be done (as in "unsupported device" you mean an unsupported security device?) as to not throw a server error (or rather a user error) for that?
Ref: https://xenforo.com/community/threads/dbtech-dragonbyte-security-paid.137963/post-1420045
I'm getting the following error:
Code:
Server error log
[LIST]
[*]Assert\InvalidArgumentException: Invalid data
[*]src\addons\DBTech\Security\vendor\beberlei\assert\lib\Assert\Assertion.php:2752
[*]Generated by: Username
[*]22 Apr 2020 at 18:01
[/LIST]
Stack trace
#0 src\addons\DBTech\Security\vendor\beberlei\assert\lib\Assert\Assertion.php(319): Assert\Assertion::createException(0, 'Invalid data', 33, NULL, Array)
#1 src\addons\DBTech\Security\vendor\web-auth\webauthn-lib\src\PublicKeyCredentialLoader.php(78): Assert\Assertion::eq(0, 4, 'Invalid data')
#2 src\addons\DBTech\Security\vendor\web-auth\webauthn-lib\src\Server.php(201): Webauthn\PublicKeyCredentialLoader->load('')
#3 src\addons\DBTech\Security\Tfa\WebAuthn.php(218): Webauthn\Server->loadAndCheckAttestationResponse('', Object(Webauthn\PublicKeyCredentialCreationOptions), Object(Nyholm\Psr7\ServerRequest))
#4 src\XF\Pub\Controller\Account.php(897): DBTech\Security\Tfa\WebAuthn->verify('setup', Object(SV\SignupAbuseBlocking\XF\Entity\User), Array, Object(XF\Http\Request))
#5 src\XF\Mvc\Dispatcher.php(350): XF\Pub\Controller\Account->actionTwoStepEnable(Object(XF\Mvc\ParameterBag))
#6 src\XF\Mvc\Dispatcher.php(257): XF\Mvc\Dispatcher->dispatchClass('XF:Account', 'TwoStepenable', Object(XF\Mvc\RouteMatch), Object(SV\SignupAbuseBlocking\XF\Pub\Controller\Account), NULL)
#7 src\XF\Mvc\Dispatcher.php(113): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\SignupAbuseBlocking\XF\Pub\Controller\Account), NULL)
#8 src\XF\Mvc\Dispatcher.php(55): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#9 src\XF\App.php(2184): XF\Mvc\Dispatcher->run()
#10 src\XF.php(391): XF\App->run()
#11 index.php(20): XF::runApp('XF\\Pub\\App')
#12 {main}
Request state
array(4) {
["url"] => string(46) "/account/two-step/dbtech_security_authn/enable"
["referrer"] => string(82) "https://domain.com/account/two-step/dbtech_security_authn/enable"
["_GET"] => array(0) {
}
["_POST"] => array(7) {
["nickname"] => string(10) "Username"
["publicKeyCredential"] => string(0) ""
["step"] => string(7) "confirm"
["_xfToken"] => string(8) "********"
["_xfRequestUri"] => string(46) "/account/two-step/dbtech_security_authn/enable"
["_xfWithData"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}
Is there anything that can be done (as in "unsupported device" you mean an unsupported security device?) as to not throw a server error (or rather a user error) for that?
Ref: https://xenforo.com/community/threads/dbtech-dragonbyte-security-paid.137963/post-1420045