Expand description
Laravel Passkeys for Laravel Rust: passwordless authentication with WebAuthn passkeys.
A community port of Laravel Passkeys by Rivervo.
It works with the @laravel/passkeys
JavaScript client unchanged. See the README for installation and usage.
Modules§
- actions
- The actions that handle the WebAuthn logic:
Laravel\Passkeys\Actions. - events
- The events the package dispatches. Each carries the user, of your user model’s type, and the
passkey, so a listener takes
PasskeyRegistered<User>. - http
- The package’s route handlers:
PasskeyLoginController,PasskeyConfirmationController, andPasskeyRegistrationController, with the validation of their form requests. - webauthn_
proto - The WebAuthn types the actions take, such as the browser’s
PublicKeyCredential, fromwebauthn-rs-core. Protocol bindings
Structs§
- Aaguids
- Looks up authenticators by their AAGUID.
- Invalid
Passkey - A passkey that can’t be registered or verified:
InvalidPasskeyException, a validation error on thecredentialfield. A JSON client gets a422with the message, and a browser is redirected back with it, as for any failed validation. - Misconfigured
- A misconfiguration that the package reports as a server error, such as an empty list of
allowed origins: PHP’s
RuntimeExceptions. - Passkey
- A row of the
passkeystable: a passkey registered by a user. - Passkeys
- The callbacks the provider registers for the user model
U, which the login route reads. The provider binds it in the container; handlers take it asInject<Passkeys<U>>. - Passkeys
Config - The passkey settings, with the defaults of the package’s
config/passkeys.php. - Passkeys
Service Provider - Registers the package’s configuration, the
passkeysmigration, and the passkey routes for the user modelU. - Registration
Options - The options of a registration ceremony:
PublicKeyCredentialCreationOptions, and what verifying the browser’s answer needs. - Require
Password - Requires a recent password confirmation: Laravel’s
password.confirmmiddleware (Illuminate\Auth\Middleware\RequirePassword), which Laravel Rust doesn’t have. It is the defaultpasskeys.management_middleware. - Unsupported
Theme - An unsupported icon theme: PHP’s
InvalidArgumentException. - Verification
Options - The options of a verification (login or confirmation) ceremony:
PublicKeyCredentialRequestOptions, and what verifying the browser’s answer needs.
Traits§
- Passkey
Authenticatable - A user who can register passkeys and log in with them.