joomla / joomla-cms

Home of the Joomla! Content Management System
https://www.joomla.org
GNU General Public License v2.0
4.75k stars 3.64k forks source link

J [5.2] - Passkey Error message on disabled https #44208

Open coolcat-creations opened 1 week ago

coolcat-creations commented 1 week ago

Steps to reproduce the issue

On a site without SSL try to configure a passkey

Expected result

Expected Result: Error Message "You have to have SSL enabled to configure a passkey" (Or similar message)

Actual result

PHP Error Image

System information (as much as possible)

Joomla 5.2. dev

richard67 commented 6 days ago

Would be good if debug was enabled so we could see the call stack.

Quy commented 3 days ago
Call Stack
#   Function    Location
1   ()  JROOT\libraries\src\WebAuthn\Server.php:297
2   Joomla\CMS\WebAuthn\Server->loadAndCheckAttestationResponse()   JROOT\plugins\multifactorauth\webauthn\src\Helper\Credentials.php:126
3   Joomla\Plugin\Multifactorauth\Webauthn\Helper\Credentials::verifyAttestation()  JROOT\plugins\multifactorauth\webauthn\src\Extension\Webauthn.php:240
4   Joomla\Plugin\Multifactorauth\Webauthn\Extension\Webauthn->onUserMultifactorSaveSetup()     JROOT\libraries\vendor\joomla\event\src\Dispatcher.php:454
5   Joomla\Event\Dispatcher->dispatch()     JROOT\administrator\components\com_users\src\Controller\MethodController.php:323
6   Joomla\Component\Users\Administrator\Controller\MethodController->save()    JROOT\libraries\src\MVC\Controller\BaseController.php:730
7   Joomla\CMS\MVC\Controller\BaseController->execute()     JROOT\administrator\components\com_users\src\Controller\MethodController.php:80
8   Joomla\Component\Users\Administrator\Controller\MethodController->execute()     JROOT\libraries\src\Dispatcher\ComponentDispatcher.php:143
9   Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch()   JROOT\libraries\src\Component\ComponentHelper.php:361
10  Joomla\CMS\Component\ComponentHelper::renderComponent()     JROOT\libraries\src\Application\AdministratorApplication.php:150
11  Joomla\CMS\Application\AdministratorApplication->dispatch()     JROOT\libraries\src\Application\AdministratorApplication.php:195
12  Joomla\CMS\Application\AdministratorApplication->doExecute()    JROOT\libraries\src\Application\CMSApplication.php:306
13  Joomla\CMS\Application\CMSApplication->execute()    JROOT\administrator\includes\app.php:58
14  require_once()  JROOT\administrator\index.php:32