Файловый менеджер - Редактировать - /home/pimjdymy/public_html/safrandsi/vendor/web-auth/webauthn-lib/src/ClientDataCollector/WebauthnAuthenticationCollector.php
Назад
<?php declare(strict_types=1); namespace Webauthn\ClientDataCollector; use Webauthn\AuthenticatorResponse; use Webauthn\CollectedClientData; use Webauthn\Exception\AuthenticatorResponseVerificationException; use Webauthn\PublicKeyCredentialOptions; use function in_array; use function sprintf; final class WebauthnAuthenticationCollector implements ClientDataCollector { public function supportedTypes(): array { return ['webauthn.get', 'webauthn.create']; } public function verifyCollectedClientData( CollectedClientData $collectedClientData, PublicKeyCredentialOptions $publicKeyCredentialOptions, AuthenticatorResponse $authenticatorResponse, string $host ): void { in_array( $collectedClientData->type, $this->supportedTypes(), true ) || throw AuthenticatorResponseVerificationException::create( sprintf('The client data type is not "%s" supported.', implode('", "', $this->supportedTypes())) ); } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка