WebAuthn
final class WebAuthn
This class provides a static interface to the webauthn-lib package, handling serialization, deserialization, and validation of WebAuthn ceremonies.
Methods
Serialize data to JSON.
Serialize data to a browser-facing array, omitting null values.
Deserialize JSON to a specific class.
Create the attestation response validator for registration ceremonies.
Create the assertion response validator for verification ceremonies.
Configure the ceremony step manager factory.
Flush all static state.
Details
at line 53
static string
toJson(mixed $data)
Serialize data to JSON.
at line 63
static array
toBrowserArray(mixed $data)
Serialize data to a browser-facing array, omitting null values.
at line 84
static object
fromJson(string $json, string $class)
Deserialize JSON to a specific class.
at line 98
static AuthenticatorAttestationResponseValidator
attestationValidator()
Create the attestation response validator for registration ceremonies.
at line 110
static AuthenticatorAssertionResponseValidator
assertionValidator()
Create the assertion response validator for verification ceremonies.
at line 126
static void
configureCeremonyStepManagerFactoryUsing(callable|null $callback)
Configure the ceremony step manager factory.
Boot-only. The callback persists in static state for the worker lifetime and affects every subsequent WebAuthn ceremony.
at line 203
static void
flushState()
Flush all static state.