security: enable_authenticator_manager: true # https://symfony.com/doc/current/security.html#registering-the-user-hashing-passwords password_hashers: Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface: 'auto' # https://symfony.com/doc/current/security.html#loading-the-user-the-user-provider providers: app_user_provider: entity: class: App\Entity\User property: email firewalls: dev: pattern: ^/(_(profiler|wdt)|css|images|js)/ security: false login: pattern: ^/?([a-zA-Z0-9-]+)?/(health)$ security: false main: pattern: ^/(.*) provider: app_user_provider form_login: login_path: login check_path: login_check enable_csrf: true logout: path: logout target: login remember_me: secret: '%kernel.secret%' lifetime: '%env(int:COOKIE_LIFETIME)%' path: / secure: true # activate different ways to authenticate # https://symfony.com/doc/current/security.html#the-firewall # https://symfony.com/doc/current/security/impersonating_user.html # switch_user: true # Easy way to control access for large sections of your site # Note: Only the *first* access control that matches will be used access_control: - { path: ^/?([a-zA-Z0-9-]+)?/job, roles: ROLE_USER } # - { path: ^/profile, roles: ROLE_USER } when@dev: security: firewalls: main: remember_me: secure: false