ninecompta/config/packages/security.yaml

43 lines
1.1 KiB
YAML
Raw Normal View History

2024-10-28 14:10:44 +01:00
security:
2024-11-20 17:09:09 +01:00
password_hashers:
Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface: "auto"
2024-12-26 17:45:58 +01:00
2024-11-20 17:09:09 +01:00
providers:
2024-12-26 17:45:58 +01:00
sql_provider:
2024-11-20 17:09:09 +01:00
entity:
class: App\Entity\User
property: username
2024-12-26 17:45:58 +01:00
2024-11-20 17:09:09 +01:00
firewalls:
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
2024-12-26 17:45:58 +01:00
2024-11-20 17:09:09 +01:00
main:
2024-12-26 17:45:58 +01:00
pattern: ^/
provider: sql_provider
custom_authenticators:
- App\Security\DynamicAuthenticator
2024-11-20 17:09:09 +01:00
form_login:
login_path: app_login
check_path: app_login
enable_csrf: true
2024-11-21 08:32:59 +01:00
default_target_path: /
2024-11-20 17:09:09 +01:00
logout:
path: app_logout
2024-10-28 14:10:44 +01:00
2024-11-20 17:09:09 +01:00
access_control:
2024-11-21 08:32:59 +01:00
- { path: ^/login, roles: PUBLIC_ACCESS }
- { path: ^/admin, roles: ROLE_ADMIN }
- { path: ^/, roles: ROLE_USER }
2024-10-28 14:10:44 +01:00
when@test:
2024-11-20 17:09:09 +01:00
security:
password_hashers:
Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface:
algorithm: auto
cost: 4 # Lowest possible value for bcrypt
time_cost: 3 # Lowest possible value for argon
memory_cost: 10 # Lowest possible value for argon