security: password_hashers: Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface: 'auto' providers: app_user_provider: id: App\Infrastructure\Security\UserProvider firewalls: dev: pattern: ^/(_profiler|_wdt|assets|build)/ security: false api: pattern: ^/api/ stateless: true custom_authenticators: - App\Infrastructure\Security\ApiKeyAuthenticator main: lazy: true provider: app_user_provider form_login: login_path: app_login check_path: app_login enable_csrf: true default_target_path: easyadmin logout: path: app_logout target: app_login two_factor: auth_form_path: 2fa_login check_path: 2fa_login_check enable_csrf: true access_control: - { path: ^/login, roles: PUBLIC_ACCESS } - { path: ^/2fa, roles: IS_AUTHENTICATED_2FA_IN_PROGRESS } - { path: ^/admin, roles: ROLE_USER } - { path: ^/totp, roles: ROLE_USER } when@test: security: password_hashers: Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface: algorithm: auto cost: 4 time_cost: 3 memory_cost: 10