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 54
static string
toJson(mixed $data)
Serialize data to JSON.
at line 64
static array
toBrowserArray(mixed $data)
Serialize data to a browser-facing array, omitting null values.
at line 85
static object
fromJson(string $json, string $class)
Deserialize JSON to a specific class.
at line 99
static AuthenticatorAttestationResponseValidator
attestationValidator()
Create the attestation response validator for registration ceremonies.
at line 111
static AuthenticatorAssertionResponseValidator
assertionValidator()
Create the assertion response validator for verification ceremonies.
at line 127
static void
configureCeremonyStepManagerFactoryUsing(callable|null $callback)
Configure the ceremony step manager factory.
The callback persists in static state for the worker lifetime and affects every subsequent WebAuthn ceremony.
at line 205
static void
flushState()
Flush all static state.