fix(config): fix firewall config

add entry_point

remove anonymous
This commit is contained in:
Simon Vieille 2023-01-08 20:53:34 +01:00
parent 70bac192e2
commit 0f4767b8e0
Signed by: deblan
GPG Key ID: 579388D585F70417
1 changed files with 3 additions and 2 deletions

View File

@ -25,7 +25,6 @@ security:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
main:
anonymous: ~
two_factor:
auth_form_path: 2fa_login # The route name you have used in the routes.yaml
check_path: 2fa_login_check # The route name you have used in the routes.yaml
@ -35,7 +34,7 @@ security:
form_login:
login_path: auth_login
check_path: auth_login
csrf_token_generator: security.csrf.token_manager
enable_csrf: true
logout:
path: auth_logout
target: /
@ -44,6 +43,8 @@ security:
lifetime: 604800
path: /
entry_point: form_login
# Easy way to control access for large sections of your site
# Note: Only the *first* access control that matches will be used
access_control: