Fake Credentials
In order to prevent username enumeration, random credentials are set when a username is passed but no user entity is found.
A very simple service is provided. If you want to change the way the fake credentials are generated, you can create a custom service. The service shall implement the Webauthn\FakeCredentialGenerator
interface.
src/CustomCredentialGenerator.php
Then, declare this service in the container and use it in your bundle configuration.
config/packages/webauthn.yaml
Last updated