web-auth/webauthn-symfony-bundle
Symfony bundle integrating WebAuthn (passkeys/FIDO2) for strong, passwordless authentication. Provides registration and login flows, configuration, and helpers to add secure WebAuthn support to Symfony apps with minimal setup.
authenticators, public_keys). Laravel’s Eloquent or migrations would need to adapt to these schemas./webauthn/register, /webauthn/verify) would need to be mapped to Laravel’s routing system.HttpFoundation vs. Laravel’s Illuminate\Http). Resolving conflicts may require composer aliases or custom resolvers.paragonie/webauthn-laravel)?HttpKernel in a Laravel command or console context (for background tasks like credential verification).composer require for the Symfony Bundle but ensure Laravel’s autoloader and service container can resolve its dependencies. Tools like symfony/var-dumper or symfony/http-foundation may need to be polyfilled.paragonie/webauthn-laravel or orhanerday/webauthn for a more native Laravel experience.WebAuthnService) that acts as a facade to the Symfony Bundle.// app/Services/WebAuthnService.php
class WebAuthnService {
public function __construct(private SymfonyBundle $bundle) {}
public function startRegistration() { /* Delegate to Bundle */ }
}
Route::post('/webauthn/register', [WebAuthnController::class, 'register'])
->middleware('webauthn.challenge');
Schema::create('authenticators', function (Blueprint $table) {
$table->id();
$table->string('credential_id');
$table->string('public_key');
$table->string('user_id');
$table->timestamps();
});
credential_id, public_key) may increase database size. Monitor growth and optimize queries.| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Symfony Bundle dependency breaks | Laravel app crashes or auth fails | Fork the package or use a Laravel-native alternative. |
| Database schema mismatch | Registration/verification fails | Write migrations that align with the Bundle’s expectations. |
| User’s authent |
How can I help you explore Laravel packages today?