Skip to content

Kirby 6.0.0

$webauthn->processCreate()

process a create request and returns data to save for future logins

$webauthn->processCreate(string $clientDataJSON, string $attestationObject, string|ByteBuffer $challenge, bool $requireUserVerification = false, bool $requireUserPresent = true, bool $failIfRootMismatch = true, bool $requireCtsProfileMatch = true): stdClass

Parameters

Name Type Default Description
$clientDataJSONrequired string no default value binary from browser
$attestationObjectrequired string no default value binary from browser
$challengerequired stringorlbuchs\WebAuthn\Binary\ByteBuffer no default value binary used challange
$requireUserVerification bool false true, if the device must verify user (e.g. by biometric data or pin)
$requireUserPresent bool true false, if the device must NOT check user presence (e.g. by pressing a button)
$failIfRootMismatch bool true false, if there should be no error thrown if root certificate doesn't match
$requireCtsProfileMatch bool true false, if you don't want to check if the device is approved as a Google-certified Android device.

Return type

stdClass

Exceptions

Type Description
lbuchs\WebAuthn\WebAuthnException

Parent class

Kirby\Auth\Service\Webauthn inherited from lbuchs\WebAuthn\WebAuthn