File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,14 +34,18 @@ security:
3434 target : dashboard
3535 switch_user : true
3636
37+ two_factor :
38+ auth_form_path : mfa_login
39+ check_path : mfa_login_check
40+
3741 # activate different ways to authenticate
3842 # https://symfony.com/doc/current/security.html#the-firewall
3943
4044 # Easy way to control access for large sections of your site
4145 # Note: Only the *first* access control that matches will be used
4246 access_control :
43- # - { path: ^/admin, roles: ROLE_ADMIN }
44- # - { path: ^/profile, roles: ROLE_USER }
47+ - { path: ^/logout, role: PUBLIC_ACCESS }
48+ - { path: ^/mfa, role: IS_AUTHENTICATED_2FA_IN_PROGRESS }
4549
4650when@test :
4751 security :
Original file line number Diff line number Diff line change 1- 2fa_login :
2- path : /2fa
1+ mfa_login :
2+ path : /mfa
33 defaults :
44 _controller : " scheb_two_factor.form_controller::form"
55
6- 2fa_login_check :
7- path : /2fa_check
6+ mfa_login_check :
7+ path : /mfa-check
You can’t perform that action at this time.
0 commit comments