51 lines
1.5 KiB
YAML
51 lines
1.5 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
|
|
|
|
##form_login:
|
|
# login_path: app_login
|
|
# check_path: app_login
|
|
logout:
|
|
path: app_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
|