Bundle Installation

This framework provides a Symfony bundle that will help you to use the components within your Symfony application.

Installation

With Symfony Flex

composer require web-auth/webauthn-symfony-bundle

Without Symfony Flex

If you don't use Symfony Flex, you must register the bundle and route manually.

config/bundles.php
<?php

return [
    //...
    Webauthn\Bundle\WebauthnBundle::class => ['all' => true],
];
config/routes/webauthn.php
<?php

declare(strict_types=1);

use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;

return function (RoutingConfigurator $routes) {
    $routes->import('.', 'webauthn');
};

Repositories

The first steps are:

You may also want to configure the other options offered by the bundle. Please refer to the configuration references.

Firewall

Now you have a fully configured bundle, you can protect your routes and manage the user registration and authenticatin through the Symfony Firewall.

Was this helpful?