From 0f4767b8e0f86429692c5efec8cbf86b27701979 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Sun, 8 Jan 2023 20:53:34 +0100 Subject: [PATCH] fix(config): fix firewall config add entry_point remove anonymous --- config/packages/security.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/packages/security.yaml b/config/packages/security.yaml index 7b07d7a..f35b7a4 100644 --- a/config/packages/security.yaml +++ b/config/packages/security.yaml @@ -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: