fix(config): fix firewall config
add entry_point remove anonymous
This commit is contained in:
parent
70bac192e2
commit
0f4767b8e0
|
@ -25,7 +25,6 @@ security:
|
||||||
pattern: ^/(_(profiler|wdt)|css|images|js)/
|
pattern: ^/(_(profiler|wdt)|css|images|js)/
|
||||||
security: false
|
security: false
|
||||||
main:
|
main:
|
||||||
anonymous: ~
|
|
||||||
two_factor:
|
two_factor:
|
||||||
auth_form_path: 2fa_login # The route name you have used in the routes.yaml
|
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
|
check_path: 2fa_login_check # The route name you have used in the routes.yaml
|
||||||
|
@ -35,7 +34,7 @@ security:
|
||||||
form_login:
|
form_login:
|
||||||
login_path: auth_login
|
login_path: auth_login
|
||||||
check_path: auth_login
|
check_path: auth_login
|
||||||
csrf_token_generator: security.csrf.token_manager
|
enable_csrf: true
|
||||||
logout:
|
logout:
|
||||||
path: auth_logout
|
path: auth_logout
|
||||||
target: /
|
target: /
|
||||||
|
@ -44,6 +43,8 @@ security:
|
||||||
lifetime: 604800
|
lifetime: 604800
|
||||||
path: /
|
path: /
|
||||||
|
|
||||||
|
entry_point: form_login
|
||||||
|
|
||||||
# Easy way to control access for large sections of your site
|
# Easy way to control access for large sections of your site
|
||||||
# Note: Only the *first* access control that matches will be used
|
# Note: Only the *first* access control that matches will be used
|
||||||
access_control:
|
access_control:
|
||||||
|
|
Loading…
Reference in a new issue