Passkeys
class Passkeys
Constants
| 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 43
static string
relyingPartyId()
Get the relying party ID.
at line 72
static void
resolveRelyingPartyIdUsing(callable|null $callback)
Register a callback to resolve the WebAuthn relying party ID for the current request.
Boot-only. The callback persists in static state for the worker lifetime and affects every subsequent WebAuthn ceremony.
at line 84
static array
allowedOrigins()
Get the origins allowed to complete WebAuthn ceremonies.
at line 116
static void
resolveAllowedOriginsUsing(callable|null $callback)
Register a callback to resolve WebAuthn allowed origins for the current request.
Boot-only. The callback persists in static state for the worker lifetime and affects every subsequent WebAuthn ceremony.
at line 126
static bool
hasRequestAwareAllowedOrigins()
Determine if allowed origins are currently resolved from request-aware state.
at line 137
static int
timeout()
Get the WebAuthn timeout in milliseconds.
at line 153
static string
passkeyModel()
Get the passkey model class name.
at line 165
static void
usePasskeyModel(string $model)
Set the passkey model class name.
Boot-only. The model class persists in static state for the worker lifetime and affects every subsequent passkey query.
at line 179
static void
authorizeLoginUsing(callable|null $callback)
Register a callback to authorize passkey logins before login.
Boot-only. The callback persists in static state for the worker lifetime and affects every subsequent passkey login.
at line 189
static bool
allowsLogin(Request $request, Passkey $passkey)
Determine if a passkey-verified user should be allowed to log in.
at line 211
static void
redirectUsing(callable|null $callback)
Register a callback to resolve the successful login redirect path.
Boot-only. The callback persists in static state for the worker lifetime and affects every subsequent successful passkey login response.
at line 221
static string
redirectTo(Request $request)
Resolve the successful login redirect path for this request.
at line 237
static string
guardName()
Get the current authentication guard name.
at line 247
static StatefulGuard
guard()
Get the current stateful authentication guard.
at line 263
static bool
shouldRegisterRoutes()
Determine if Passkeys routes should be registered.
at line 273
static void
ignoreRoutes()
Configure Passkeys to not register its routes.
Boot-only. The route registration flag persists in static state for the worker lifetime and affects route bootstrapping.
at line 281
static string
migrationPath()
Get the path to the package's migrations.
at line 289
static string
userHandleSecret()
Get the configured user handle secret.
at line 313
static void
flushState()
Flush all static state.