1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
security:
access_decision_manager:
strategy: unanimous
encoders:
Symfony\Component\Security\Core\User\User: plaintext
Alt\Bundle\UserBundle\Entity\User: sha512
role_hierarchy:
USERGROUPE_ROLE_ADMIN: [USERGROUPE_ROLE_HABILITATION]
USERGROUPE_ROLE_HABILITATION: [USERGROUPE_ROLE_CREATION_USER]
providers:
users:
id: alt_user.security.user_provider
firewalls:
dev:
pattern: ^/(_(profiler|wdt|trans)|css|img|js)/
security: false
login:
pattern: ^/(.*)/(.*)/(login|reset_password)$
security: false
bdu:
provider: users
pattern: ^/
form_login:
check_path: login_check
login_path: user_login
csrf_provider: form.csrf_provider
success_handler: alt_user.security.authentication_handler
failure_handler: alt_user.security.authentication_handler
username_parameter: email
password_parameter: password
logout:
path: logout
target: user_login
#anonymous: ~
#http_basic:
# realm: "Secured Demo Area"
access_control:
- { path: ^/, roles: ROLE_USER, requires_channel: https } |
Partager