Passkeys
class Passkeys
Constants
| DEFAULT_TIMEOUT |
|
| private DEFAULT_PASSKEY_MODEL |
|
| private DEFAULT_REGISTERS_ROUTES |
|
Methods
Get the relying party ID.
Register a callback to resolve the WebAuthn relying party ID for the current request.
Get the origins allowed to complete WebAuthn ceremonies.
Register a callback to resolve WebAuthn allowed origins for the current request.
Determine if allowed origins are currently resolved from request-aware state.
Get the WebAuthn timeout in milliseconds.
Get the passkey model class name.
Set the passkey model class name.
Register a callback to authorize passkey logins before login.
Determine if a passkey-verified user should be allowed to log in.
Register a callback to resolve the successful login redirect path.
Get the current authentication guard name.
Get the current stateful authentication guard.
Determine if Passkeys routes should be registered.
Configure Passkeys to not register its routes.
Get the path to the package's migrations.
Get the configured user handle secret.
Flush all static state.
Details
at line 46
static string
relyingPartyId()
Get the relying party ID.
at line 75
static void
resolveRelyingPartyIdUsing(callable|null $callback)
Register a callback to resolve the WebAuthn relying party ID for the current request.
The callback persists in static state for the worker lifetime and affects every subsequent WebAuthn ceremony.
at line 88
static array
allowedOrigins()
Get the origins allowed to complete WebAuthn ceremonies.
at line 120
static void
resolveAllowedOriginsUsing(callable|null $callback)
Register a callback to resolve WebAuthn allowed origins for the current request.
The callback persists in static state for the worker lifetime and affects every subsequent WebAuthn ceremony.
at line 131
static bool
hasRequestAwareAllowedOrigins()
Determine if allowed origins are currently resolved from request-aware state.
at line 142
static int
timeout()
Get the WebAuthn timeout in milliseconds.
at line 158
static string
passkeyModel()
Get the passkey model class name.
at line 170
static void
usePasskeyModel(string $model)
Set the passkey model class name.
The model class persists in static state for the worker lifetime and affects every subsequent passkey query.
at line 185
static void
authorizeLoginUsing(callable|null $callback)
Register a callback to authorize passkey logins before login.
The callback persists in static state for the worker lifetime and affects every subsequent passkey login.
at line 196
static bool
allowsLogin(Request $request, Passkey $passkey)
Determine if a passkey-verified user should be allowed to log in.
at line 218
static void
redirectUsing(callable|null $callback)
Register a callback to resolve the successful login redirect path.
The callback persists in static state for the worker lifetime and affects every subsequent successful passkey login response.
at line 229
static string
redirectTo(Request $request)
Resolve the successful login redirect path for this request.
at line 245
static string
guardName()
Get the current authentication guard name.
at line 255
static StatefulGuard
guard()
Get the current stateful authentication guard.
at line 271
static bool
shouldRegisterRoutes()
Determine if Passkeys routes should be registered.
at line 281
static void
ignoreRoutes()
Configure Passkeys to not register its routes.
The route registration flag persists in static state for the worker lifetime and affects route bootstrapping.
at line 290
static string
migrationPath()
Get the path to the package's migrations.
at line 298
static string
userHandleSecret()
Get the configured user handle secret.
at line 328
static void
flushState()
Flush all static state.