Spookie/config/packages/security.yaml
2022-11-01 16:16:35 +01:00

48 lines
1.4 KiB
YAML

security:
enable_authenticator_manager: true
hide_user_not_found: false
role_hierarchy:
ROLE_ADMIN: [ROLE_ALLOWED_TO_SWITCH]
password_hashers:
Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface: 'auto'
App\Entity\User:
algorithm: auto
providers:
app_user_provider:
entity:
class: App\Entity\User
property: username
firewalls:
dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/
security: false
main:
lazy: true
provider: app_user_provider
custom_authenticator: App\Security\LoginFormAuthenticator
logout:
path: security_logout
switch_user: true
remember_me:
secret: '%kernel.secret%'
signature_properties: [password]
access_control:
- { path: ^/admin, roles: ROLE_ADMIN }
- { path: ^/profile/edit, roles: ROLE_USER }
when@test:
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