Input Validation
Last updated
Was this helpful?
Was this helpful?
<?php
declare(strict_types=1);
use Webauthn\AuthenticatorAttestationResponseValidator;
use Webauthn\AuthenticatorAssertionResponseValidator;
$authenticatorAttestationResponseValidator = AuthenticatorAttestationResponseValidator::create(
null, //Deprecated
null, //Deprecated
null, //Deprecated
null, //Deprecated
null, //Deprecated
$creationCSM
);
$authenticatorAssertionResponseValidator = AuthenticatorAssertionResponseValidator::create(
null, //Deprecated
null, //Deprecated
null, //Deprecated
null, //Deprecated
null, //Deprecated
$requestCSM
);
// Also valid
$authenticatorAttestationResponseValidator = AuthenticatorAttestationResponseValidator::create(
ceremonyStepManager: $creationCSM
);
$authenticatorAssertionResponseValidator = AuthenticatorAssertionResponseValidator::create(
ceremonyStepManager: $requestCSM
);