2019-10-26 18:07:36 +02:00
|
|
|
security:
|
2026-04-11 20:45:51 +02:00
|
|
|
password_hashers:
|
|
|
|
|
App\Entity\User:
|
|
|
|
|
algorithm: auto
|
|
|
|
|
|
2026-04-10 12:57:03 +02:00
|
|
|
providers:
|
|
|
|
|
app_user_provider:
|
|
|
|
|
entity:
|
|
|
|
|
class: App\Entity\User
|
|
|
|
|
property: username
|
2026-04-11 20:45:51 +02:00
|
|
|
|
2026-04-10 12:57:03 +02:00
|
|
|
firewalls:
|
|
|
|
|
dev:
|
|
|
|
|
pattern: ^/(_(profiler|wdt)|css|images|js)/
|
|
|
|
|
security: false
|
|
|
|
|
main:
|
|
|
|
|
lazy: true
|
2026-04-11 20:45:51 +02:00
|
|
|
provider: app_user_provider
|
|
|
|
|
user_checker: App\Security\UserChecker
|
2026-04-12 17:55:57 +02:00
|
|
|
two_factor:
|
|
|
|
|
check_path: 2fa_login_check
|
|
|
|
|
auth_form_path: 2fa_login
|
|
|
|
|
auth_code_parameter_name: _auth_code
|
|
|
|
|
post_only: true
|
|
|
|
|
default_target_path: MineSeekerBundle_homepage
|
2026-04-18 08:49:10 +02:00
|
|
|
always_use_default_target_path: false
|
2026-04-12 17:55:57 +02:00
|
|
|
prepare_on_login: true
|
|
|
|
|
prepare_on_access_denied: true
|
2026-04-11 20:45:51 +02:00
|
|
|
form_login:
|
|
|
|
|
login_path: MineSeekerBundle_login
|
|
|
|
|
check_path: MineSeekerBundle_login
|
|
|
|
|
default_target_path: MineSeekerBundle_homepage
|
2026-04-18 08:49:10 +02:00
|
|
|
always_use_default_target_path: false
|
2026-04-11 20:45:51 +02:00
|
|
|
username_parameter: _username
|
|
|
|
|
password_parameter: _password
|
|
|
|
|
enable_csrf: true
|
|
|
|
|
logout:
|
|
|
|
|
path: MineSeekerBundle_logout
|
|
|
|
|
target: MineSeekerBundle_homepage
|
2026-04-12 17:55:57 +02:00
|
|
|
switch_user: false
|
2019-10-26 18:07:36 +02:00
|
|
|
|
2026-04-10 12:57:03 +02:00
|
|
|
access_control:
|
2026-04-12 17:55:57 +02:00
|
|
|
- { path: ^/2fa, roles: IS_AUTHENTICATED_2FA_IN_PROGRESS }
|
2026-04-12 15:19:03 +02:00
|
|
|
- { path: ^/api/webauthn/authentication/begin, roles: PUBLIC_ACCESS }
|
|
|
|
|
- { path: ^/api/webauthn/authentication/complete, roles: PUBLIC_ACCESS }
|