Files
api/services/nginx/app/tests/auth/WebAuthnInstallTest.php
T
Jeppe Bundgaard b291e959e0 Add WebAuthn integration, reCAPTCHA support, and new tests
- Integrate WebAuthn library for passkey authentication workflows, including assertion verification and improved error handling.
- Add support for reCAPTCHA token validation across multiple endpoints for enhanced security.
- Extend OpenAPI schema to document new fields and restructured payloads.
- Add unit tests for WebAuthn flows, permission initialization, and route validation to ensure robustness and accuracy.
2026-02-24 09:27:51 +01:00

29 lines
756 B
PHP

<?php
if (!defined('WD')) {
define('WD', dirname(__DIR__, 2));
}
require_once WD . '/vendor/autoload.php';
use Webauthn\PublicKeyCredentialSource;
use Webauthn\AuthenticatorAssertionResponseValidator;
echo "Checking WebAuthn library installation...\n";
if (class_exists(PublicKeyCredentialSource::class)) {
echo "✔ PublicKeyCredentialSource class exists\n";
} else {
echo "✘ PublicKeyCredentialSource class does not exist\n";
exit(1);
}
if (class_exists(AuthenticatorAssertionResponseValidator::class)) {
echo "✔ AuthenticatorAssertionResponseValidator class exists\n";
} else {
echo "✘ AuthenticatorAssertionResponseValidator class does not exist\n";
exit(1);
}
echo "WebAuthn library installation verified.\n";